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
104104 };
105105 $ offset = 0 ;
106106 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 ) {
108108 $ customerWebsiteByEmail [$ customer ['email ' ]][] = $ customer ['website_id ' ];
109109 return $ customerWebsiteByEmail ;
110110 });
@@ -114,8 +114,7 @@ private function loadCustomersData(array $customerIdentifiers): void
114114 $ i = 0 ;
115115 foreach ($ customers as $ customer ) {
116116 $ this ->addCustomerByArray ($ customer );
117- if (
118- $ this ->configShare ->isGlobalScope () &&
117+ if ($ this ->configShare ->isGlobalScope () &&
119118 !in_array ((int ) $ customer ['website_id ' ], $ customerWebsites [$ customer ['email ' ]], true )
120119 ) {
121120 $ customer ['website_id ' ] = $ customerWebsites [$ customer ['email ' ]][$ i ];
You can’t perform that action at this time.
0 commit comments