[-] BO : fix #PSCFV-2564 : imported customers with a CSV file

This commit is contained in:
lLefevre
2012-05-25 12:51:55 +00:00
parent 2ee18af371
commit 398f701751
+6 -1
View File
@@ -1664,7 +1664,12 @@ class AdminImportControllerCore extends AdminController
$info = AdminImportController::getMaskedRow($line);
AdminImportController::setDefaultValues($info);
$customer = new Customer();
if (array_key_exists('id', $info) && (int)$info['id'] && Customer::customerIdExistsStatic((int)$info['id']))
$customer = new Customer((int)$info['id']);
else
$customer = new Customer();
AdminImportController::arrayWalk($info, array('AdminImportController', 'fillInfo'), $customer);
if ($customer->passwd)