From 4166c1377427c76b60f08c6d84f6b675eaa1ddac Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 27 Sep 2018 12:34:27 -0400 Subject: [PATCH] fixing link urls for edit and list pages --- setup/adminHooks.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 436f43a..2af6ae4 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -251,10 +251,11 @@ add_action( 'init', function(){ add_filter( GLM_MEMBERS_EVENTS_PLUGIN_SLUG .'-dashboard-widget', function ( $member = null ) { - $eventsIndexPage = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-events-index&glm_action=edit'; - $eventsTable = GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events"; - $eventsEditPage = GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'events-index&glm_action=list&option=edit'; - $content = [ + $eventsIndexPage = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-events-index&glm_action=edit'; + $eventsTable = GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events"; + $eventsEditPage = GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'events-index&glm_action=list&option=edit'; + $eventsListPage = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-events-list'; + $content = [ 'title' => 'Events', 'components' => [ [ @@ -311,7 +312,7 @@ add_filter( 'order' => 4, 'template' => 'dateSearch', 'entityID' => 'event', - 'resultUrl' => $eventsEditPage, + 'resultUrl' => $eventsListPage, ], [ 'id' => 'pending', -- 2.17.1