diff --git a/controllers/admin/AdminStatsTabController.php b/controllers/admin/AdminStatsTabController.php index b5f5f4e40..9c737ac45 100644 --- a/controllers/admin/AdminStatsTabController.php +++ b/controllers/admin/AdminStatsTabController.php @@ -86,12 +86,12 @@ abstract class AdminStatsTabControllerCore extends AdminPreferencesControllerCor $id = Tools::getValue('module'); } - $action = Context::getContext()->link->getAdminLink('AdminStatsTab'); - $action .= ($action && $table ? '&'.Tools::safeOutput($action) : ''); + $action = Context::getContext()->link->getAdminLink('AdminStats'); + $action .= ($action && $table ? '&'.Tools::safeOutput($action) : ''); $action .= ($identifier && $id ? '&'.Tools::safeOutput($identifier).'='.(int)$id : ''); - $action .= ($module = Tools::getValue('module') ? '&module='.Tools::safeOutput($module) : ''); + $module = Tools::getValue('module'); + $action .= ($module ? '&module='.Tools::safeOutput($module) : ''); $action .= ($id_product = Tools::getValue('id_product') ? '&id_product='.Tools::safeOutput($id_product) : ''); - $tpl->assign(array( 'current' => self::$currentIndex, 'token' => $token,