Bläddra i källkod

Ignore single doctypes for global search

version-14
Nabin Hait 8 år sedan
förälder
incheckning
d9c559777e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      frappe/utils/global_search.py

+ 1
- 1
frappe/utils/global_search.py Visa fil

@@ -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:


Laddar…
Avbryt
Spara