Просмотр исходного кода

child table (__) exclusion

version-14
pratu16x7 8 лет назад
Родитель
Сommit
82c122ecea
1 измененных файлов: 2 добавлений и 1 удалений
  1. +2
    -1
      frappe/utils/global_search.py

+ 2
- 1
frappe/utils/global_search.py Просмотреть файл

@@ -4,6 +4,7 @@
from __future__ import unicode_literals from __future__ import unicode_literals


import frappe import frappe
from frappe.utils import cint


def setup_global_search_table(): def setup_global_search_table():
'''Creates __global_seach table''' '''Creates __global_seach table'''
@@ -30,7 +31,7 @@ def update_global_search(doc):
`frappe.flags.update_global_search` from given doc `frappe.flags.update_global_search` from given doc
:param doc: Document to be added to global search''' :param doc: Document to be added to global search'''


if doc.meta.istable:
if cint(doc.meta.istable) == 1 and not doc.parenttype.startswith("__"):
d = frappe.get_doc(doc.parenttype, doc.parent) d = frappe.get_doc(doc.parenttype, doc.parent)
update_global_search(d) update_global_search(d)
return return


Загрузка…
Отмена
Сохранить