Merge pull request #24019 from surajshetty3416/fix-global-search

fix: Do not change global search label to lower case
This commit is contained in:
Suraj Shetty 2023-12-29 10:29:27 +05:30 committed by GitHub
commit 2e007b1ec8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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