Skip to content

Commit 59a742b

Browse files
committed
ACP2E-1315: [GraphQL] Any child products of bundle product are not returned in GraphQL response
1 parent 5a022f6 commit 59a742b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getList(
8989

9090
$this->collectionPreProcessor->process($collection, $searchCriteria, $attributes, $context);
9191

92-
if ($isChildSearch) {
92+
if (!$isChildSearch) {
9393
$visibilityIds = $isSearch
9494
? $this->visibility->getVisibleInSearchIds()
9595
: $this->visibility->getVisibleInCatalogIds();

app/code/Magento/RelatedProductGraphQl/Model/Resolver/Batch/AbstractLikedProducts.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ private function findRelations(array $products, array $loadAttributes, int $link
9494
$this->searchCriteriaBuilder->addFilter('entity_id', $relatedIds, 'in');
9595
$relatedSearchResult = $this->productDataProvider->getList(
9696
$this->searchCriteriaBuilder->create(),
97-
$loadAttributes,
98-
false,
99-
true
97+
$loadAttributes
10098
);
10199
//Filling related products map.
102100
/** @var \Magento\Catalog\Api\Data\ProductInterface[] $relatedProducts */

0 commit comments

Comments
 (0)