Skip to content

Commit 207b160

Browse files
committed
Fix for #8392
1 parent a3b5a18 commit 207b160

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Catalog/Model/ProductLink/CollectionProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ public function getCollection(\Magento\Catalog\Model\Product $product, $type)
4848
$products = $this->providers[$type]->getLinkedProducts($product);
4949
$converter = $this->converterPool->getConverter($type);
5050
$output = [];
51-
$realoutput = [];
51+
$realoutput = [];
5252
foreach ($products as $item) {
5353
$output[$item->getId()] = $converter->convert($item);
5454
}
55-
foreach ($output as $item) {
56-
$realoutput[$item["position"]] = $item;
57-
}
58-
ksort($realoutput);
55+
foreach ($output as $item) {
56+
$realoutput[$item["position"]] = $item;
57+
}
58+
ksort($realoutput);
5959
return $realoutput;
6060
}
6161
}

0 commit comments

Comments
 (0)