Skip to content

Commit 5f566e4

Browse files
committed
microrefactoring in product gallery block helper
1 parent cc4b174 commit 5f566e4

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function getElementHtml()
113113
*/
114114
public function getImages()
115115
{
116-
$images = $this->registry->registry('current_product')->getData('media_gallery') ?: null;
116+
$images = $this->getDataObject()->getData('media_gallery') ?: null;
117117
if ($images === null) {
118118
$images = ((array)$this->dataPersistor->get('catalog_product'))['product']['media_gallery'] ?? null;
119119
}

0 commit comments

Comments
 (0)