From ecf727ed696d3f55312e5078fe5b319d49528e9f Mon Sep 17 00:00:00 2001 From: Simon Lichtinghagen Date: Tue, 18 Mar 2025 15:49:43 +0000 Subject: [PATCH] fix: "Undefined" shown in global search results --- frappe/public/js/frappe/ui/toolbar/search_utils.js | 5 ++++- 1 file changed, 4 insertions(+), 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 407e77437f..4c93daf028 100644 --- a/frappe/public/js/frappe/ui/toolbar/search_utils.js +++ b/frappe/public/js/frappe/ui/toolbar/search_utils.js @@ -585,7 +585,10 @@ frappe.search.utils = { return score; } if (score == 0) { - return { score, item }; + return { + score: score, + marked_string: item, + }; } // Create Boolean mask to mark matching indices in the item string