[*] 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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user