adding entityID for url query params and stripping the quotes from the defines in...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Sep 2018 16:41:12 +0000 (12:41 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Sep 2018 16:41:12 +0000 (12:41 -0400)
setup/adminHooks.php

index e78b92f..58f5fa9 100644 (file)
@@ -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",