From 6ce5cc20da36a3d3e40bde99c0f10027a0f36d46 Mon Sep 17 00:00:00 2001 From: colemanw Date: Sat, 2 Sep 2023 12:41:49 -0400 Subject: [PATCH] QuickSearch - Fix 'not found' message --- js/crm.menubar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/crm.menubar.js b/js/crm.menubar.js index 5a4946e204..d5e98fd532 100644 --- a/js/crm.menubar.js +++ b/js/crm.menubar.js @@ -309,7 +309,7 @@ var label = option.closest('label').text(); var msg = ts('%1 not found.', {1: label}); // Remind user they are not searching by contact name (unless they enter a number) - if (params.field_name !== 'sort_name' && !(/[\d].*/.test(params.name))) { + if (option.val() !== 'sort_name' && !(/[\d].*/.test(params.name))) { msg += ' ' + ts('Did you mean to search by Name/Email instead?'); } ret.push({value: '0', label: msg}); -- 2.25.1