From 1deb053ddf4eadd085554c13ec01dcecfde01e46 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 20 Sep 2018 12:41:12 -0400 Subject: [PATCH] adding entityID for url query params and stripping the quotes from the defines in the adminhooks widget dashboard filters --- setup/adminHooks.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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", -- 2.17.1