[-] FO : Try to fix "phone required" bug once again when only signing in
This commit is contained in:
@@ -386,7 +386,12 @@ class AuthControllerCore extends FrontController
|
|||||||
if (!Tools::getValue('phone'))
|
if (!Tools::getValue('phone'))
|
||||||
$error_phone = true;
|
$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'))
|
||||||
|
&& (Configuration::get('PS_ORDER_PROCESS_TYPE') && !Tools::getValue('email_create')))
|
||||||
|
&& (!Tools::getValue('phone') && !Tools::getValue('phone_mobile')))
|
||||||
|
$error_phone = true;
|
||||||
|
elseif (((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') && Configuration::get('PS_ORDER_PROCESS_TYPE') && Tools::getValue('email_create')))
|
||||||
|
&& (!Tools::getValue('phone') && !Tools::getValue('phone_mobile')))
|
||||||
$error_phone = true;
|
$error_phone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user