diff --git a/app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php b/app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php index a86ad5ee18529..9c533705fcd52 100644 --- a/app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php +++ b/app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php @@ -113,7 +113,7 @@ public function getElementHtml() */ public function getImages() { - $images = $this->registry->registry('current_product')->getData('media_gallery') ?: null; + $images = $this->getDataObject()->getData('media_gallery') ?: null; if ($images === null) { $images = ((array)$this->dataPersistor->get('catalog_product'))['product']['media_gallery'] ?? null; }