[*] BO : #PSCFV-3831 : check each field which are required in databases
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17107 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user