File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,15 +111,15 @@ private function loadCustomersData(array $customerIdentifiers): void
111
111
$ chunkSelect = clone $ select ;
112
112
$ chunkSelect ->where ($ customerTableId . '.email IN (?) ' , array_keys ($ customerWebsites ));
113
113
$ customers = $ collection ->getConnection ()->fetchAll ($ chunkSelect );
114
- $ i = 0 ;
115
114
foreach ($ customers as $ customer ) {
116
115
$ this ->addCustomerByArray ($ customer );
117
116
if ($ this ->configShare ->isGlobalScope () &&
118
117
!in_array ((int ) $ customer ['website_id ' ], $ customerWebsites [$ customer ['email ' ]], true )
119
118
) {
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
+ }
123
123
}
124
124
}
125
125
}
You can’t perform that action at this time.
0 commit comments