Fix the url sent to the textSearch suggestion links
authorLaury GvR <laury@gaslightmedia.com>
Fri, 21 Sep 2018 13:59:18 +0000 (09:59 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 21 Sep 2018 13:59:18 +0000 (09:59 -0400)
setup/adminHooks.php

index 0cb7003..bc5e698 100644 (file)
@@ -49,6 +49,7 @@ add_filter(
     function ( $member = null ) {
         $packagingIndexPage = GLM_MEMBERS_PACKAGING_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-packaging-index&glm_action=index';
         $packagesTable = GLM_MEMBERS_PACKAGING_PLUGIN_DB_PREFIX . "packages";
+        $packagingMemberEditPage = GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'member&glm_action=packaging&option=edit';
         $packagingEditPage = GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'member&glm_action=packaging&option=edit';
 
         /*
@@ -102,7 +103,7 @@ add_filter(
                     'table'     => $packagesTable,
                     'fields'    => "id, title as name, image",
                     'where'     => 'title',
-                    'resultUrl' => $packagingEditPage,
+                    'resultUrl' => $packagingIndexPage . "&option=edit",
                 ],
                 'active' => [
                     'title' => "Active Packages",