[-] 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user