X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2Fcommon%2Fnavigation.js.tpl;h=87a0a23a0e87b6f6e2d76c26a7714a0a257956f4;hb=4e1046dfa7d7b0eb2710444886d47cc068046b9f;hp=06129b3686d76e36d8f2d9e9c2102eab783fa036;hpb=a02bf9bf0106d08df8b803a5ac8d1782684563c5;p=civicrm-core.git 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});