From 858bcdac4d36b323ea0ebff48379253c934881f0 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15696 b9a71923-0436-4b27-9f14-aed3839534dd --- 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();