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

This commit is contained in:
lLefevre committed 2012-05-25 15:12:02 +00:00
1 parent ab97948b2f
commit ca228b0bbc
1 file changed
+1 -1
+1 -1
View File
@@ -1690,7 +1690,7 @@ class AdminImportControllerCore extends AdminController
{ {
$customer->id_shop_group = Shop::getGroupFromShop($customer->id_shop); $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(); $res = $customer->update();
if (!$res) if (!$res)
$res = $customer->add(); $res = $customer->add();