[-] BO : fix #PSCFV-2578 : Not duplicate customers with the CSV file

This commit is contained in:
lLefevre
2012-05-25 15:12:02 +00:00
parent a18e8a18ed
commit 4c90cb1c77
+1 -1
View File
@@ -1690,7 +1690,7 @@ class AdminImportControllerCore extends AdminController
{
$customer->id_shop_group = Shop::getGroupFromShop($customer->id_shop);
if ($customer->id && $customer->customerIdExists($customer->id))
if (($customer->id && $customer->customerIdExists($customer->id)) || $customer->customerExists($customer->email))
$res = $customer->update();
if (!$res)
$res = $customer->add();