From: Anthony Talarico Date: Thu, 20 Sep 2018 16:41:12 +0000 (-0400) Subject: adding entityID for url query params and stripping the quotes from the defines in... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=1deb053ddf4eadd085554c13ec01dcecfde01e46;p=WP-Plugins%2Fglm-member-db-packaging.git adding entityID for url query params and stripping the quotes from the defines in the adminhooks widget dashboard filters --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index e78b92f..58f5fa9 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -87,12 +87,13 @@ add_filter( 'url' => $packagingIndexPage . "&option=search", ], 'textSearch' => [ - 'order' => 2, + 'order' => 2, 'component' => 'textSearch', - 'table' => $packagesTable, - 'fields' => "id, title, image, ref_dest", - 'baseUrl' => 'GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE."member&glm_action=packaging', - 'resultUrl' => 'GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE."member&glm_action=packaging&option=edit', + 'table' => $packagesTable, + 'fields' => "id, title, image, ref_dest", + 'baseUrl' => GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'member&glm_action=packaging', + 'resultUrl' => GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'member&glm_action=packaging&option=edit', + 'entityID' => 'packageID' ], 'pending' => [ 'title' => "Pending Packages",