From a7fa15926959b02085b709e2920d892ab6d3a050 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Tue, 16 Oct 2012 13:31:13 +0000 Subject: [PATCH] [-] FO : fixed bug #PSCFV-4946 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17877 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/front/AuthController.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index cc9c5249e..22e7ea06d 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -392,13 +392,8 @@ class AuthControllerCore extends FrontController $_POST['lastname'] = Tools::getValue('customer_lastname'); $_POST['firstname'] = Tools::getValue('customer_firstname'); - if (Configuration::get('PS_ONE_PHONE_AT_LEAST') - && !Tools::getValue('phone') - && !Tools::getValue('phone_mobile') - && (Configuration::get('PS_ORDER_PROCESS_TYPE') //check if is in OPC mode - || (Configuration::get('PS_REGISTRATION_PROCESS_TYPE') && !Configuration::get('PS_ORDER_PROCESS_TYPE')) //check if is simple registration mode and not in OPC mode) - )) - $this->errors[] = Tools::displayError('You must register at least one phone number'); + if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !Tools::getValue('phone') && !Tools::getValue('phone_mobile') && !Configuration::get('PS_ORDER_PROCESS_TYPE')) + $this->errors[] = Tools::displayError('You must register at least one phone number'); $this->errors = array_unique(array_merge($this->errors, $customer->validateController()));