[-] BO: Add display of modules errors on reset #PSCFV-2077
This commit is contained in:
1 parent
3510cc03ab
commit
e5ec07f95a
1 file changed
+2
@@ -462,6 +462,7 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->errors[] = Tools::displayError('Cannot load module object');
|
$this->errors[] = Tools::displayError('Cannot load module object');
|
||||||
|
$this->errors = array_merge($this->errors, $module->getErrors());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->errors[] = Tools::displayError('You do not have permission to add here.');
|
$this->errors[] = Tools::displayError('You do not have permission to add here.');
|
||||||
@@ -688,6 +689,7 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
elseif ($echo === false)
|
elseif ($echo === false)
|
||||||
$module_errors[] = array('name' => $name, 'message' => $module->getErrors());
|
$module_errors[] = array('name' => $name, 'message' => $module->getErrors());
|
||||||
|
|
||||||
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_ALL && isset(Context::getContext()->tmpOldShop))
|
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_ALL && isset(Context::getContext()->tmpOldShop))
|
||||||
{
|
{
|
||||||
Context::getContext()->shop = clone(Context::getContext()->tmpOldShop);
|
Context::getContext()->shop = clone(Context::getContext()->tmpOldShop);
|
||||||
|
|||||||
Reference in new issue
Block a user