// Refactor AdminController::_errors to errors

This commit is contained in:
tDidierjean committed 2012-01-11 08:58:12 +00:00
1 parent 9a607a1610
commit 8a757aaa9c
68 files changed
+857 -859

No files matched your search

+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();
}