diff --git a/admin-dev/functions.php b/admin-dev/functions.php index b343b5b9c..ce72fb038 100644 --- a/admin-dev/functions.php +++ b/admin-dev/functions.php @@ -410,6 +410,7 @@ function runAdminTab($tab, $ajaxMode = false) // $tab = $_REQUEST['tab']; if ($adminObj = checkingTab($tab)) { + Context::getContext()->controller = $adminObj; // init is different for new tabs (AdminController) and old tabs (AdminTab) if ($adminObj instanceof AdminController) { @@ -462,7 +463,7 @@ function runAdminTab($tab, $ajaxMode = false) '.translate('Back Office').' '.$bread.''; - if (!$ajaxMode && Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_ALL) + if (!$ajaxMode && Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_ALL && Context::getContext()->controller->multishop_context != Shop::CONTEXT_ALL) { echo '