From 4b5f84264b6ecca1c1a0babda47eec85ab5b4210 Mon Sep 17 00:00:00 2001 From: mage2pratik Date: Wed, 25 Jul 2018 23:56:03 +0530 Subject: [PATCH] Microrefactoring in product gallery block helper --- .../Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f30b37877b78f..0557a215383d3 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 @@ -102,7 +102,7 @@ public function getElementHtml() */ public function getImages() { - return $this->registry->registry('current_product')->getData('media_gallery') ?: null; + return $this->getDataObject()->getData('media_gallery') ?: null; } /**