[*] 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
@@ -769,6 +769,10 @@ class AdminCustomersControllerCore extends AdminController
if (!is_array(Tools::getValue('groupBox')) || !in_array(Tools::getValue('id_default_group'), Tools::getValue('groupBox')))
$this->errors[] = Tools::displayError('Default customer group must be selected in group box.');
// Check the requires fields which are settings in the BO
$customer = new Customer();
$this->errors = array_merge($this->errors, $customer->validateFieldsRequiredDatabase());
return parent::processSave();
}