Skip to content

Commit

Permalink
magento/adobe-stock-integration#1711: Use product model instead of da…
Browse files Browse the repository at this point in the history
…ta object for catalog image helper init - Apply PR suggestion
  • Loading branch information
jmonteros422 committed Aug 7, 2020
1 parent 11d0a35 commit 25133c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 25133c5

Please sign in to comment.