File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ private function loadCustomersData(array $customerIdentifiers): void
104
104
};
105
105
$ offset = 0 ;
106
106
for ($ chunk = $ getChuck ($ offset ); !empty ($ chunk ); $ offset += $ pageSize , $ chunk = $ getChuck ($ offset )) {
107
- $ customerWebsites = array_reduce ($ chunk , function ($ customerWebsiteByEmail , $ customer ) {
107
+ $ customerWebsites = array_reduce ($ chunk , function ($ customerWebsiteByEmail , $ customer ) {
108
108
$ customerWebsiteByEmail [$ customer ['email ' ]][] = $ customer ['website_id ' ];
109
109
return $ customerWebsiteByEmail ;
110
110
});
@@ -114,8 +114,7 @@ private function loadCustomersData(array $customerIdentifiers): void
114
114
$ i = 0 ;
115
115
foreach ($ customers as $ customer ) {
116
116
$ this ->addCustomerByArray ($ customer );
117
- if (
118
- $ this ->configShare ->isGlobalScope () &&
117
+ if ($ this ->configShare ->isGlobalScope () &&
119
118
!in_array ((int ) $ customer ['website_id ' ], $ customerWebsites [$ customer ['email ' ]], true )
120
119
) {
121
120
$ customer ['website_id ' ] = $ customerWebsites [$ customer ['email ' ]][$ i ];
You can’t perform that action at this time.
0 commit comments