CRM-19000 - Fix when hitting enter on quicksearch
authorColeman Watts <coleman@civicrm.org>
Fri, 24 Jun 2016 00:10:29 +0000 (20:10 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 24 Jun 2016 00:10:29 +0000 (20:10 -0400)
templates/CRM/common/navigation.js.tpl

index 06129b3686d76e36d8f2d9e9c2102eab783fa036..87a0a23a0e87b6f6e2d76c26a7714a0a257956f4 100644 (file)
@@ -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});