From d8e97f2dc042f24c8fbfd3b7172417b3776b7605 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Fri, 29 Dec 2023 10:26:16 +0530 Subject: [PATCH] fix: Do not change global search label to lower case --- frappe/public/js/frappe/ui/toolbar/search_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/ui/toolbar/search_utils.js b/frappe/public/js/frappe/ui/toolbar/search_utils.js index d910e8ada6..0ceb9c53de 100644 --- a/frappe/public/js/frappe/ui/toolbar/search_utils.js +++ b/frappe/public/js/frappe/ui/toolbar/search_utils.js @@ -613,7 +613,7 @@ frappe.search.utils = { const target = item.label.toLowerCase(); const txt = keywords.toLowerCase(); if (txt === target || target.indexOf(txt) === 0) { - const search_result = this.fuzzy_search(txt, target, true); + const search_result = this.fuzzy_search(txt, item.label, true); results.push({ type: "Executable", value: search_result.marked_string,