[*] BO : #PSCFV-3831 : check each field which are required in databases

This commit is contained in:
lLefevre
2012-08-30 16:06:09 +00:00
parent 7fa7171796
commit f0765d10b5
5 changed files with 37 additions and 0 deletions
+3
View File
@@ -182,6 +182,9 @@ class AddressControllerCore extends FrontController
AND deleted = 0') > 0)
$this->errors[] = sprintf(Tools::displayError('The alias "%s" is already used, please chose another one.'), Tools::safeOutput($_POST['alias']));
// Check the requires fields which are settings in the BO
$this->errors = array_merge($this->errors, $address->validateFieldsRequiredDatabase());
// Don't continue this process if we have errors !
if ($this->errors && !$this->ajax)
return;