From d9c559777e12e5b15887851c3ed099180dc9fecf Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 16 May 2017 16:47:02 +0530 Subject: [PATCH] Ignore single doctypes for global search --- frappe/utils/global_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/global_search.py b/frappe/utils/global_search.py index 8d481a814b..7271118f4c 100644 --- a/frappe/utils/global_search.py +++ b/frappe/utils/global_search.py @@ -34,7 +34,7 @@ def get_doctypes_with_global_search(with_child_tables=True): global_search_doctypes = [] filters = {} if not with_child_tables: - filters = {"istable": ["!=", 1]} + filters = {"istable": ["!=", 1], "issingle": ["!=", 1]} for d in frappe.get_all('DocType', fields=['name', 'module'], filters=filters): meta = frappe.get_meta(d.name) if len(meta.get_global_search_fields()) > 0: