File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 77
88namespace Magento \CatalogGraphQl \Model \Resolver \Products \DataProvider ;
99
10- use Magento \Catalog \Api \Data \ProductInterface ;
1110use Magento \Catalog \Model \Product \Visibility ;
1211use Magento \CatalogGraphQl \Model \Resolver \Products \DataProvider \Product \CollectionPostProcessor ;
1312use 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 ();
You can’t perform that action at this time.
0 commit comments