From e8b9ba18bc7638a9e83fb17714cdaeff8c261ad0 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Fri, 23 Dec 2011 00:19:24 +0000 Subject: [PATCH] //last fix before release :p thanks franky git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11736 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/front/AddressController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/front/AddressController.php b/controllers/front/AddressController.php index 3e7e090e4..fdb8318e8 100644 --- a/controllers/front/AddressController.php +++ b/controllers/front/AddressController.php @@ -114,8 +114,8 @@ class AddressControllerCore extends FrontController */ protected function processSubmitAddress() { - if ($this->context->customer->is_guest) - Tools::redirect('index.php?controller=addresses'); + /*if ($this->context->customer->is_guest) + Tools::redirect('index.php?controller=addresses');*/ $address = new Address(); $this->errors = $address->validateController(); @@ -177,7 +177,7 @@ class AddressControllerCore extends FrontController $address->dni = NULL; // Don't continue this process if we have errors ! - if ($this->errors) + if ($this->errors && !Tools::isSubmit('ajax')) return; // If we edit this address, delete old address and create a new one