Updates for the filter (custom fields)
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 25 Jul 2018 18:24:50 +0000 (14:24 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 25 Jul 2018 18:24:50 +0000 (14:24 -0400)
Adding $uid for either member or contact

models/admin/members/list.php
views/admin/members/list.html

index c1a2073..5ac5546 100644 (file)
@@ -276,7 +276,7 @@ class GlmMembersAdmin_members_list extends GlmDataMembers
         // Get full list for all other filters, but not filtered by alpha (that would be silly)
         $alphaList = $this->getAlphaList(' AND '.$where, $alphaSelected);
 
-        $whereParts = apply_filters('glm-member-db-admin-search-query', $where);
+        $whereParts = apply_filters('glm-member-db-admin-search-query', $where, 'glm-member-db');
         if ( is_array( $whereParts ) && count( $whereParts ) > 0 ) {
             $where .= ' AND '.implode(" AND ", $whereParts);
             $whereSep = ' AND ';
index 2cf28a0..fa55bf8 100644 (file)
@@ -40,7 +40,7 @@
                 <b>Pending Only: </b><input type="checkbox" name="filterPending" value="true" id="filterPending" class="listFilter"{if $filterPending} checked{/if} style="margin-right: 1em;">
         </div>
 
-       {apply_filters('glm-member-db-custom-filter-search', '')}
+       {apply_filters('glm-member-db-custom-filter-search', '', 'glm-member-db' )}
 
         <p><b>Total found:</b> {$memberCount}&nbsp;&nbsp;</p>