[*] 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
+4
View File
@@ -394,6 +394,10 @@ class AuthControllerCore extends FrontController
if (!Tools::getValue('phone') && !Tools::getValue('phone_mobile') && Configuration::get('PS_REGISTRATION_PROCESS_TYPE'))
$this->errors[] = Tools::displayError('You must register at least one phone number');
$this->errors = array_unique(array_merge($this->errors, $customer->validateController()));
// Check the requires fields which are settings in the BO
$this->errors = array_merge($this->errors, $customer->validateFieldsRequiredDatabase());
if (!Configuration::get('PS_REGISTRATION_PROCESS_TYPE') && !$this->ajax && !Tools::isSubmit('submitGuestAccount'))
{
if (!count($this->errors))