[+] FO : now you can choose if at least on phone number is required

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17452 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-09-21 09:25:17 +00:00
parent 702b93aa25
commit ae34979845
5 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -391,7 +391,7 @@ class AuthControllerCore extends FrontController
$customer = new Customer();
$_POST['lastname'] = Tools::getValue('customer_lastname');
$_POST['firstname'] = Tools::getValue('customer_firstname');
if (!Tools::getValue('phone') && !Tools::getValue('phone_mobile') && Configuration::get('PS_REGISTRATION_PROCESS_TYPE'))
if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !Tools::getValue('phone') && !Tools::getValue('phone_mobile') && Configuration::get('PS_REGISTRATION_PROCESS_TYPE'))
$this->errors[] = Tools::displayError('You must register at least one phone number');
$this->errors = array_unique(array_merge($this->errors, $customer->validateController()));