We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de4dfb8 + 921460a commit 5c130dbCopy full SHA for 5c130db
app/code/Magento/Catalog/Model/Product/Gallery/ReadHandler.php
@@ -64,7 +64,7 @@ public function execute($entity, $arguments = [])
64
65
$this->addMediaDataToProduct(
66
$entity,
67
- $this->sortMediaEntriesByPosition($mediaEntries)
+ $mediaEntries
68
);
69
70
return $entity;
@@ -80,6 +80,7 @@ public function execute($entity, $arguments = [])
80
*/
81
public function addMediaDataToProduct(Product $product, array $mediaEntries)
82
{
83
+ $mediaEntries = $this->sortMediaEntriesByPosition($mediaEntries);
84
$product->setData(
85
$this->getAttribute()->getAttributeCode(),
86
[
0 commit comments