File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
app/code/Magento/AdvancedPricingImportExport/Model/Export Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -269,15 +269,13 @@ protected function getExportData()
269
269
try {
270
270
$ productsByStores = $ this ->loadCollection ();
271
271
if (!empty ($ productsByStores )) {
272
- $ productLinkField = $ this ->getProductEntityLinkField ();
273
- /** @var string[] $productLinkIds */
272
+ $ linkField = $ this ->getProductEntityLinkField ();
274
273
$ productLinkIds = [];
275
274
276
- foreach ($ productsByStores as $ productByStores ) {
277
- $ productLinkIds []
278
- = array_pop ($ productByStores )[$ productLinkField ];
275
+ foreach ($ productsByStores as $ product ) {
276
+ $ productLinkIds [array_pop ($ product )[$ linkField ]] = true ;
279
277
}
280
- $ productLinkIds = array_unique ($ productLinkIds );
278
+ $ productLinkIds = array_keys ($ productLinkIds );
281
279
$ tierPricesData = $ this ->fetchTierPrices ($ productLinkIds );
282
280
$ exportData = $ this ->prepareExportData (
283
281
$ productsByStores ,
You can’t perform that action at this time.
0 commit comments