Skip to content

Commit 25133c5

Browse files
committed
magento/adobe-stock-integration#1711: Use product model instead of data object for catalog image helper init - Apply PR suggestion
1 parent 11d0a35 commit 25133c5

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Columns

1 file changed

+1
-1
lines changed

app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Columns/Thumbnail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function prepareDataSource(array $dataSource)
7272
if (isset($item[$fieldName])) {
7373
$item[$fieldName . '_src'] = $this->getUrl($item[$fieldName]);
7474
} else {
75-
$category = $this->productFactory->create($item);
75+
$category = $this->productFactory->create(['data' => $item]);
7676
$imageHelper = $this->imageHelper->init($category, 'product_listing_thumbnail');
7777
$item[$fieldName . '_src'] = $imageHelper->getUrl();
7878
}

0 commit comments

Comments
 (0)