Skip to content

Commit 33899b3

Browse files
committed
ACP2E-3165: [Cloud] Getting error while checking the data in import data using CSV
- Fixed the CR comments.
1 parent 4aa2a04 commit 33899b3

File tree

1 file changed

+4
-4
lines changed
  • app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer

1 file changed

+4
-4
lines changed

app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer/Storage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ private function loadCustomersData(array $customerIdentifiers): void
111111
$chunkSelect = clone $select;
112112
$chunkSelect->where($customerTableId . '.email IN (?)', array_keys($customerWebsites));
113113
$customers = $collection->getConnection()->fetchAll($chunkSelect);
114-
$i = 0;
115114
foreach ($customers as $customer) {
116115
$this->addCustomerByArray($customer);
117116
if ($this->configShare->isGlobalScope() &&
118117
!in_array((int) $customer['website_id'], $customerWebsites[$customer['email']], true)
119118
) {
120-
$customer['website_id'] = $customerWebsites[$customer['email']][$i];
121-
$i++;
122-
$this->addCustomerByArray($customer);
119+
foreach ($customerWebsites[$customer['email']] as $websiteId) {
120+
$customer['website_id'] = $websiteId;
121+
$this->addCustomerByArray($customer);
122+
}
123123
}
124124
}
125125
}

0 commit comments

Comments
 (0)