[-] FO : replace ucfirst by ucwords for the customer firstname #PSCFV-10396
This commit is contained in:
@@ -425,6 +425,7 @@ class AuthControllerCore extends FrontController
|
||||
if (Tools::isSubmit('newsletter'))
|
||||
$this->processCustomerNewsletter($customer);
|
||||
|
||||
$customer->firstname = Tools::ucwords($customer->firstname);
|
||||
$customer->birthday = (empty($_POST['years']) ? '' : (int)$_POST['years'].'-'.(int)$_POST['months'].'-'.(int)$_POST['days']);
|
||||
if (!Validate::isBirthDate($customer->birthday))
|
||||
$this->errors[] = Tools::displayError('Invalid date of birth.');
|
||||
|
||||
Reference in New Issue
Block a user