[-] FO : fixed bug #PSCFV-5563 - address can't be changed when making an order as a guest

This commit is contained in:
vAugagneur
2012-11-29 18:35:05 +01:00
parent c8d63a7819
commit 24d2e87e8e
2 changed files with 4 additions and 9 deletions
+1 -8
View File
@@ -117,9 +117,6 @@ class AddressControllerCore extends FrontController
*/
protected function processSubmitAddress()
{
/*if ($this->context->customer->is_guest)
Tools::redirect('index.php?controller=addresses');*/
$address = new Address();
$this->errors = $address->validateController();
$address->id_customer = (int)$this->context->customer->id;
@@ -241,7 +238,7 @@ class AddressControllerCore extends FrontController
}
else
Tools::redirect('index.php?controller=addresses');
}
}
$this->errors[] = Tools::displayError('An error occurred while updating your address.');
}
@@ -253,10 +250,6 @@ class AddressControllerCore extends FrontController
{
parent::initContent();
/* Secure restriction for guest */
if ($this->context->customer->is_guest)
Tools::redirect('index.php?controller=addresses');
$this->assignCountries();
$this->assignVatNumber();
$this->assignAddressFormat();