[-] FO : BugFix #PSCFV-1450 The Alias "My Address" is already used, please chose another one.

This commit is contained in:
vChabot
2012-04-30 15:06:07 +00:00
parent 9bd48dea6c
commit 0d52bd516e
36 changed files with 209 additions and 212 deletions
+1 -3
View File
@@ -64,8 +64,6 @@ class AddressControllerCore extends FrontController
else if (Tools::getValue('type') == 'invoice' && isset($this->context->cart->id_address_invoice)
&& $this->context->cart->id_address_invoice != $this->context->cart->id_address_delivery)
$id_address = (int)$this->context->cart->id_address_invoice;
else
exit;
}
else
$id_address = (int)Tools::getValue('id_address', 0);
@@ -189,7 +187,7 @@ class AddressControllerCore extends FrontController
$this->errors[] = sprintf(Tools::displayError('The alias "%s" is already used, please chose another one.'), Tools::safeOutput($_POST['alias']));
// Don't continue this process if we have errors !
if ($this->errors && !Tools::isSubmit('ajax'))
if ($this->errors && !$this->ajax)
return;
// If we edit this address, delete old address and create a new one