From 4c90cb1c77f6ed31efe88cfa8c49291b8d0cacfa Mon Sep 17 00:00:00 2001 From: lLefevre Date: Fri, 25 May 2012 15:12:02 +0000 Subject: [PATCH] [-] BO : fix #PSCFV-2578 : Not duplicate customers with the CSV file --- controllers/admin/AdminImportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 95322fbf3..fea96a2c9 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -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();