Skip to content

Commit

Permalink
Fix for magento#8392
Browse files Browse the repository at this point in the history
  • Loading branch information
kirashet666 committed Feb 8, 2017
1 parent 1507bb1 commit a3b5a18
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ public function getCollection(\Magento\Catalog\Model\Product $product, $type)
$products = $this->providers[$type]->getLinkedProducts($product);
$converter = $this->converterPool->getConverter($type);
$output = [];
$realoutput = [];
foreach ($products as $item) {
$output[$item->getId()] = $converter->convert($item);
}
return $output;
foreach ($output as $item) {
$realoutput[$item["position"]] = $item;
}
ksort($realoutput);
return $realoutput;
}
}

0 comments on commit a3b5a18

Please sign in to comment.