Skip to content

Commit 0469d64

Browse files
committed
ACP2E-1315: [GraphQL] Any child products of bundle product are not returned in GraphQL response
1 parent 382095c commit 0469d64

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace Magento\CatalogGraphQl\Model\Resolver\Products\DataProvider;
99

10-
use Magento\Catalog\Api\Data\ProductInterface;
1110
use Magento\Catalog\Model\Product\Visibility;
1211
use Magento\CatalogGraphQl\Model\Resolver\Products\DataProvider\Product\CollectionPostProcessor;
1312
use Magento\Framework\Api\SearchCriteriaInterface;
@@ -94,7 +93,7 @@ public function getList(
9493
$visibilityIds = $isSearch
9594
? $this->visibility->getVisibleInSearchIds()
9695
: $this->visibility->getVisibleInCatalogIds();
97-
$collection->addAttributeToFilter(ProductInterface::VISIBILITY, $visibilityIds);
96+
$collection->setVisibility($visibilityIds);
9897
}
9998

10099
$collection->load();

0 commit comments

Comments
 (0)