fix: Duplicate if condition remove
This commit is contained in:
parent
a837a4d69c
commit
68930a022a
1 changed files with 0 additions and 3 deletions
|
|
@ -231,9 +231,6 @@ def update_global_search(doc):
|
|||
if frappe.local.conf.get('disable_global_search'):
|
||||
return
|
||||
|
||||
if frappe.local.conf.get('disable_global_search'):
|
||||
return
|
||||
|
||||
if doc.docstatus > 1 or (doc.meta.has_field("enabled") and not doc.get("enabled")) \
|
||||
or doc.get("disabled"):
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue