[*] 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:
lLefevre
2012-08-30 16:06:09 +00:00
parent 8cfd8b0cc6
commit 292266ed40
5 changed files with 37 additions and 0 deletions
@@ -370,6 +370,10 @@ class AdminAddressesControllerCore extends AdminController
$_POST['id_address'] = '';
}
// Check the requires fields which are settings in the BO
$address = new Address();
$this->errors = array_merge($this->errors, $address->validateFieldsRequiredDatabase());
if (empty($this->errors))
return parent::processSave();
else