[-] 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
This commit is contained in:
lLefevre
2012-05-25 15:12:02 +00:00
parent c0c3986e7f
commit 858bcdac4d
+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();