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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14983 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-04-30 15:06:07 +00:00
parent 2e7052d283
commit 3db31ece5a
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