//small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17910 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
9abc5d86a5
commit
ae81bdd1bd
1 file changed
+2
-1
@@ -392,7 +392,8 @@ class AuthControllerCore extends FrontController
|
|||||||
$_POST['lastname'] = Tools::getValue('customer_lastname');
|
$_POST['lastname'] = Tools::getValue('customer_lastname');
|
||||||
$_POST['firstname'] = Tools::getValue('customer_firstname');
|
$_POST['firstname'] = Tools::getValue('customer_firstname');
|
||||||
|
|
||||||
if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !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') || Configuration::get('PS_GUEST_CHECKOUT_ENABLED')))
|
||||||
$this->errors[] = Tools::displayError('You must register at least one phone number');
|
$this->errors[] = Tools::displayError('You must register at least one phone number');
|
||||||
|
|
||||||
$this->errors = array_unique(array_merge($this->errors, $customer->validateController()));
|
$this->errors = array_unique(array_merge($this->errors, $customer->validateController()));
|
||||||
|
|||||||
Reference in new issue
Block a user