From 25133c56cf0e0390c11399b78cbe3fb426fdd1be Mon Sep 17 00:00:00 2001 From: janmonteros Date: Fri, 7 Aug 2020 18:36:39 +0800 Subject: [PATCH] magento/adobe-stock-integration#1711: Use product model instead of data object for catalog image helper init - Apply PR suggestion --- .../Ui/Component/Listing/Columns/Thumbnail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Columns/Thumbnail.php b/app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Columns/Thumbnail.php index 7a2662b59d198..4cacaea0d99bf 100644 --- a/app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Columns/Thumbnail.php +++ b/app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Columns/Thumbnail.php @@ -72,7 +72,7 @@ public function prepareDataSource(array $dataSource) if (isset($item[$fieldName])) { $item[$fieldName . '_src'] = $this->getUrl($item[$fieldName]); } else { - $category = $this->productFactory->create($item); + $category = $this->productFactory->create(['data' => $item]); $imageHelper = $this->imageHelper->init($category, 'product_listing_thumbnail'); $item[$fieldName . '_src'] = $imageHelper->getUrl(); }