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 cc4b174 commit 5f566e4Copy full SHA for 5f566e4
app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php
@@ -113,7 +113,7 @@ public function getElementHtml()
113
*/
114
public function getImages()
115
{
116
- $images = $this->registry->registry('current_product')->getData('media_gallery') ?: null;
+ $images = $this->getDataObject()->getData('media_gallery') ?: null;
117
if ($images === null) {
118
$images = ((array)$this->dataPersistor->get('catalog_product'))['product']['media_gallery'] ?? null;
119
}
0 commit comments