From: Anthony Talarico Date: Tue, 25 Sep 2018 13:51:56 +0000 (-0400) Subject: adjusting the table info being passed in adminhooks for the dashboard widget text... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a47dde305ab2fbb72d92d1e3bbe2e73ba396732f;p=WP-Plugins%2Fglm-member-db.git adjusting the table info being passed in adminhooks for the dashboard widget text search --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 2177b3e8..ecd328ac 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -410,6 +410,7 @@ add_filter( $membersIndexPage = GLM_MEMBERS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-members'; $memberIndexPage = GLM_MEMBERS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-member'; $membersTable = GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_info"; + $membersTextTable = GLM_MEMBERS_PLUGIN_DB_PREFIX . "members"; $membersEditPage = GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'member&glm_action=memberInfo'; /* @@ -465,9 +466,9 @@ add_filter( 'order' => 2, 'template' => 'textSearch', 'entityID' => 'id', - 'table' => $membersTable, - 'fields' => "id, title as name, image", - 'where' => 'title', + 'table' => $membersTextTable, + 'fields' => "id, name", + 'where' => 'name', 'resultUrl' => $memberIndexPage . "&option=edit", ], [