fix: Duplicate if condition remove

This commit is contained in:
Bhavesh Maheshwari 2021-07-13 15:55:24 +05:30 committed by GitHub
parent a837a4d69c
commit 68930a022a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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