Skip to content

Commit 4b5f842

Browse files
committed
Microrefactoring in product gallery block helper
1 parent c268006 commit 4b5f842

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
@@ -102,7 +102,7 @@ public function getElementHtml()
102102
*/
103103
public function getImages()
104104
{
105-
return $this->registry->registry('current_product')->getData('media_gallery') ?: null;
105+
return $this->getDataObject()->getData('media_gallery') ?: null;
106106
}
107107

108108
/**

0 commit comments

Comments
 (0)