Procházet zdrojové kódy

Ignore single doctypes for global search

version-14
Nabin Hait před 8 roky
rodič
revize
d9c559777e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      frappe/utils/global_search.py

+ 1
- 1
frappe/utils/global_search.py Zobrazit soubor

@@ -34,7 +34,7 @@ def get_doctypes_with_global_search(with_child_tables=True):
global_search_doctypes = [] global_search_doctypes = []
filters = {} filters = {}
if not with_child_tables: 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): for d in frappe.get_all('DocType', fields=['name', 'module'], filters=filters):
meta = frappe.get_meta(d.name) meta = frappe.get_meta(d.name)
if len(meta.get_global_search_fields()) > 0: if len(meta.get_global_search_fields()) > 0:


Načítá se…
Zrušit
Uložit