[-] 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:
1 parent
c0c3986e7f
commit
858bcdac4d
1 file changed
+1
-1
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user