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

This commit is contained in:
vAugagneur committed 2012-09-21 09:25:17 +00:00
1 parent 59f00ea894
commit 48be553d25
5 files changed
+15 -2

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ class AddressControllerCore extends FrontController
$this->errors[] = Tools::displayError('Invalid token');
// Check phone
if (!Tools::getValue('phone') && !Tools::getValue('phone_mobile'))
if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !Tools::getValue('phone') && !Tools::getValue('phone_mobile'))
$this->errors[] = Tools::displayError('You must register at least one phone number');
if ($address->id_country)
{