From d393c5fee0fcb6f1447454fda8c280fcaf3b8b0b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 23 Jun 2016 20:10:29 -0400 Subject: [PATCH] CRM-19000 - Fix when hitting enter on quicksearch --- templates/CRM/common/navigation.js.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/common/navigation.js.tpl b/templates/CRM/common/navigation.js.tpl index 06129b3686..87a0a23a0e 100644 --- a/templates/CRM/common/navigation.js.tpl +++ b/templates/CRM/common/navigation.js.tpl @@ -167,7 +167,7 @@ $('#civicrm-menu').ready(function() { label = $selection.parent().text(), value = $selection.val(); // These fields are not supported by advanced search - if (value === 'first_name' || value === 'last_name') { + if (!value || value === 'first_name' || value === 'last_name') { value = 'sort_name'; } $('#sort_name_navigation').attr({name: value, placeholder: label}); -- 2.25.1