swapping the fields array for a field text string in the adminhooks widget filter
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Sep 2018 16:34:33 +0000 (12:34 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Sep 2018 16:34:33 +0000 (12:34 -0400)
setup/adminHooks.php

index 3566ac4..e78b92f 100644 (file)
@@ -90,12 +90,9 @@ add_filter(
                 'order' => 2,
                 'component' => 'textSearch',
                 'table' => $packagesTable,
-                'fields' => [
-                    'id',
-                    'title',
-                    'image',
-                    'ref_dest'
-                ]
+                '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',
             ],
             'pending' => [
                 'title' => "Pending Packages",