[-] FO : fixed bug #PSCFV-4946

This commit is contained in:
vAugagneur
2012-10-16 13:31:13 +00:00
parent 3c47a0a71c
commit 757e78e3bd
+2 -7
View File
@@ -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()));