[-] FO : fixed bug #PSCFV-9388 - newsletter is required error, showing two times

This commit is contained in:
Vincent Augagneur
2013-06-26 11:46:02 +02:00
parent c5e65e1360
commit 3d2e46b14f
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -414,11 +414,11 @@ class AuthControllerCore extends FrontController
if ($error_phone)
$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());
$this->errors = $this->errors + $customer->validateFieldsRequiredDatabase();
if (!Configuration::get('PS_REGISTRATION_PROCESS_TYPE') && !$this->ajax && !Tools::isSubmit('submitGuestAccount'))
{