Merge pull request #17645 from MegaphoneJon/core-1826
[civicrm-core.git] / js / crm.menubar.js
index 1d4f753838ae2549258e3b5906a8033446a7681a..d28f0983498f6a908f41c5b3839575871977f3ba 100644 (file)
         var $selection = $('.crm-quickSearchField input:checked'),
           label = $selection.parent().text(),
           value = $selection.val();
-        // These fields are not supported by advanced search
-        if (!value || value === 'first_name' || value === 'last_name') {
-          value = 'sort_name';
-        }
         $('#crm-qsearch-input').attr({name: value, placeholder: '\uf002 ' + label});
       }
       $('.crm-quickSearchField').click(function() {