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.
1 parent 25b6600 commit efb6455Copy full SHA for efb6455
app/code/Magento/Catalog/Model/Product.php
@@ -1468,7 +1468,10 @@ public function getMediaGalleryImages()
1468
if (!$this->hasData('media_gallery_images') && is_array($this->getMediaGallery('images'))) {
1469
$images = $this->_collectionFactory->create();
1470
foreach ($this->getMediaGallery('images') as $image) {
1471
- if ((isset($image['disabled']) && $image['disabled']) || empty($image['value_id'])) {
+ if ((isset($image['disabled']) && $image['disabled'])
1472
+ || empty($image['value_id'])
1473
+ || $images->getItemById($image['value_id']) != null
1474
+ ) {
1475
continue;
1476
}
1477
$image['url'] = $this->getMediaConfig()->getMediaUrl($image['file']);
0 commit comments