[-] FO : Fix bug #PSCFV-8098 inversion in customer and address name

This commit is contained in:
gRoussac
2013-03-21 18:25:40 +01:00
parent f10e0db2f0
commit a87aee5fb3
+2 -2
View File
@@ -379,6 +379,8 @@ class AuthControllerCore extends FrontController
$this->errors[] = Tools::displayError('An account using this email address has already been registered.', false);
// Preparing customer
$customer = new Customer();
$lastnameAddress = $_POST['lastname'];
$firstnameAddress = $_POST['firstname'];
$_POST['lastname'] = Tools::getValue('customer_lastname');
$_POST['firstname'] = Tools::getValue('customer_firstname');
@@ -468,8 +470,6 @@ class AuthControllerCore extends FrontController
}
else // if registration type is in one step, we save the address
{
$lastnameAddress = $_POST['lastname'];
$firstnameAddress = $_POST['firstname'];
// Preparing address
$address = new Address();
$_POST['lastname'] = $lastnameAddress;