[-] FO : Fix again #PSCFV-6209 #PSCFV-5686 no required phone

This commit is contained in:
gRoussac
2013-01-03 15:19:04 +01:00
parent b1d0ab0eb5
commit 88cd7ce1f4
+2 -1
View File
@@ -386,9 +386,10 @@ class AuthControllerCore extends FrontController
if (!Tools::getValue('phone'))
$error_phone = true;
}
elseif (Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Configuration::get('PS_ORDER_PROCESS_TYPE') && (!Tools::getValue('phone') || !Tools::getValue('phone_mobile')))
elseif ((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Configuration::get('PS_ORDER_PROCESS_TYPE')) && (!Tools::getValue('phone') && !Tools::getValue('phone_mobile')))
$error_phone = true;
}
if ($error_phone)
$this->errors[] = Tools::displayError('You must register at least one phone number');