perf(customize_form): rebuild global search in bg
This commit is contained in:
parent
07e1d34568
commit
6717b07ab9
1 changed files with 3 additions and 1 deletions
|
|
@ -192,7 +192,9 @@ class CustomizeForm(Document):
|
|||
|
||||
if self.flags.rebuild_doctype_for_global_search:
|
||||
frappe.enqueue(
|
||||
"frappe.utils.global_search.rebuild_for_doctype", now=True, doctype=self.doc_type
|
||||
"frappe.utils.global_search.rebuild_for_doctype",
|
||||
doctype=self.doc_type,
|
||||
enqueue_after_commit=True,
|
||||
)
|
||||
|
||||
def set_property_setters(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue