fixing the adminHooks controller call to the manageDashboard members list model ...
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 13 Nov 2018 21:21:28 +0000 (16:21 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 13 Nov 2018 21:21:28 +0000 (16:21 -0500)
models/admin/ajax/adminSearch.php
setup/adminHooks.php
views/admin/common/manageDashboard/index.html

index 186ac36..f3745f0 100644 (file)
@@ -98,7 +98,7 @@ class GlmMembersAdmin_ajax_adminSearch
         $this->write_log("LIST: ". $list);
         
         $return = array(
-            'searchData'    => $memberSearch       // Where our events list will go
+            'searchData'    => $list     // Where our events list will go
         );
 
         header('Content-type:application/json;charset=utf-8', true);
index 8d588ec..52746aa 100644 (file)
@@ -577,6 +577,6 @@ add_filter(
 add_filter(
     'glm-member-db-admin-search',
     function ( $data ) {
-        return $this->controller( 'manageDashboard', 'members');
+        return $this->controller( 'manageDashboard', 'members', false, false , true);
     }
 );
\ No newline at end of file
index e048ec9..91fd6ce 100644 (file)
         let data = {
             action      : 'glm_members_admin_ajax',
             glm_action  : 'adminSearch',
-            form_action : 'list'
+            form_action : 'list',
+            options: "YES"
             // table       : textSearchData.table,
             // fields      : textSearchData.fields,
             // where       : textSearchData.where