// Refactor AdminController::_errors to errors

This commit is contained in:
tDidierjean
2012-01-11 08:58:12 +00:00
parent 9a607a1610
commit 8a757aaa9c
68 changed files with 857 additions and 859 deletions
+2 -2
View File
@@ -301,9 +301,9 @@ class AdminScenesControllerCore extends AdminController
if (Tools::isSubmit('save_image_map'))
{
if (!Tools::isSubmit('categories') || !count(Tools::getValue('categories')))
$this->_errors[] = Tools::displayError('You should select at least one category');
$this->errors[] = Tools::displayError('You should select at least one category');
if (!Tools::isSubmit('zones') || !count(Tools::getValue('zones')))
$this->_errors[] = Tools::displayError('You should make at least one zone');
$this->errors[] = Tools::displayError('You should make at least one zone');
}
parent::postProcess();
}