From f7158ad5f683f50c123604ea6d9542e7616caf2f Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 5 Jun 2020 15:39:25 +0530 Subject: [PATCH] fix: Obey config for global search of web routes --- frappe/utils/global_search.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frappe/utils/global_search.py b/frappe/utils/global_search.py index 007d138638..e945039d0d 100644 --- a/frappe/utils/global_search.py +++ b/frappe/utils/global_search.py @@ -274,6 +274,9 @@ def update_global_search(doc): sync_value_in_queue(value) def update_global_search_for_all_web_pages(): + if frappe.conf.get('disable_global_search'): + return + print('Update global search for all web pages...') routes_to_index = get_routes_to_index() for route in routes_to_index: