[-] FO : fixed bug #PSCFV-4137

This commit is contained in:
vAugagneur
2012-09-21 08:36:31 +00:00
parent 8d467ef1c5
commit cb83f43604
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -538,7 +538,8 @@ class AuthControllerCore extends FrontController
else
{
$address->id_customer = (int)$customer->id;
if ((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || $this->ajax || Tools::isSubmit('submitGuestAccount')) && !$address->add())
$this->errors = array_unique(array_merge($this->errors, $address->validateController()));
if (!count($this->errors) && (Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || $this->ajax || Tools::isSubmit('submitGuestAccount')) && !$address->add())
$this->errors[] = Tools::displayError('An error occurred while creating your address.');
else
{