// Refactor AdminController::_errors to errors
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12331 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user