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 7
7
8
8
namespace Magento \CatalogGraphQl \Model \Resolver \Products \DataProvider ;
9
9
10
- use Magento \Catalog \Api \Data \ProductInterface ;
11
10
use Magento \Catalog \Model \Product \Visibility ;
12
11
use Magento \CatalogGraphQl \Model \Resolver \Products \DataProvider \Product \CollectionPostProcessor ;
13
12
use Magento \Framework \Api \SearchCriteriaInterface ;
@@ -94,7 +93,7 @@ public function getList(
94
93
$ visibilityIds = $ isSearch
95
94
? $ this ->visibility ->getVisibleInSearchIds ()
96
95
: $ this ->visibility ->getVisibleInCatalogIds ();
97
- $ collection ->addAttributeToFilter (ProductInterface:: VISIBILITY , $ visibilityIds );
96
+ $ collection ->setVisibility ( $ visibilityIds );
98
97
}
99
98
100
99
$ collection ->load ();
You can’t perform that action at this time.
0 commit comments