CRM-17558:fixed search filtering
authorsarehag <joakim.sarehag@gmail.com>
Wed, 2 Mar 2016 15:05:14 +0000 (16:05 +0100)
committersarehag <joakim.sarehag@gmail.com>
Wed, 2 Mar 2016 15:05:14 +0000 (16:05 +0100)
templates/CRM/Group/Form/Search.tpl

index 4846f16a2dbe0e5812e0a8a7c60e6eb25b38b084..ddaf95c54e962e39673f8ce4a46d72e9998cc962 100644 (file)
         "url": {/literal}'{crmURL p="civicrm/ajax/grouplist" h=0 q="snippet=4"}'{literal},
         "data": function (d) {
 
-          var groupTypes = ($('.crm-group-search-form-block #group_type_1').prop('checked')) ? '1' : '';
+          var groupTypes = ($('.crm-group-search-form-block #group_type_search_1').prop('checked')) ? '1' : '';
           if (groupTypes) {
-            groupTypes = ($('.crm-group-search-form-block #group_type_2').prop('checked')) ? groupTypes + ',2' : groupTypes;
+            groupTypes = ($('.crm-group-search-form-block #group_type_search_2').prop('checked')) ? groupTypes + ',2' : groupTypes;
           } else {
-            groupTypes = ($('.crm-group-search-form-block #group_type_2').prop('checked')) ? '2' : '';
+            groupTypes = ($('.crm-group-search-form-block #group_type_search_2').prop('checked')) ? '2' : '';
           }
 
           var groupStatus = ($('.crm-group-search-form-block #group_status_1').prop('checked')) ? 1 : '';