From: Anthony Talarico Date: Tue, 13 Nov 2018 21:21:28 +0000 (-0500) Subject: fixing the adminHooks controller call to the manageDashboard members list model ... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9b6c70d3da799610d588770965f235d38f69d79c;p=WP-Plugins%2Fglm-member-db.git fixing the adminHooks controller call to the manageDashboard members list model / view --- diff --git a/models/admin/ajax/adminSearch.php b/models/admin/ajax/adminSearch.php index 186ac369..f3745f07 100644 --- a/models/admin/ajax/adminSearch.php +++ b/models/admin/ajax/adminSearch.php @@ -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); diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 8d588ec3..52746aa3 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -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 diff --git a/views/admin/common/manageDashboard/index.html b/views/admin/common/manageDashboard/index.html index e048ec98..91fd6ced 100644 --- a/views/admin/common/manageDashboard/index.html +++ b/views/admin/common/manageDashboard/index.html @@ -157,7 +157,8 @@ 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