Skip to content

Commit

Permalink
Product media_gallery_entries / types only present if image, thumbnai…
Browse files Browse the repository at this point in the history
…l, small_image is requested
  • Loading branch information
XxXgeoXxX committed May 20, 2019
1 parent 211dd25 commit bb5ae76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getList(
): SearchResultsInterface {
/** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */
$collection = $this->collectionFactory->create();

$attributes = array_unique(array_merge($attributes, ['small_image', 'thumbnail', 'image']));
$this->collectionProcessor->process($collection, $searchCriteria, $attributes);

if (!$isChildSearch) {
Expand Down

0 comments on commit bb5ae76

Please sign in to comment.