@@ -348,11 +348,7 @@ protected function getNonAnchorCategoriesSelect(Store $store)
348348 \Magento \Catalog \Model \Product \Attribute \Source \Status::STATUS_ENABLED
349349 )->where (
350350 $ this ->connection ->getIfNullSql ('cpvs.value ' , 'cpvd.value ' ) . ' IN (?) ' ,
351- [
352- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_CATALOG ,
353- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_SEARCH ,
354- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_BOTH
355- ]
351+ $ this ->config ->getVisibility ()->getVisibleInSiteIds ()
356352 )->columns (
357353 [
358354 'category_id ' => 'cc.entity_id ' ,
@@ -593,11 +589,7 @@ protected function createAnchorSelect(Store $store)
593589 \Magento \Catalog \Model \Product \Attribute \Source \Status::STATUS_ENABLED
594590 )->where (
595591 $ this ->connection ->getIfNullSql ('cpvs.value ' , 'cpvd.value ' ) . ' IN (?) ' ,
596- [
597- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_CATALOG ,
598- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_SEARCH ,
599- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_BOTH
600- ]
592+ $ this ->config ->getVisibility ()->getVisibleInSiteIds ()
601593 )->where (
602594 $ this ->connection ->getIfNullSql ('ccas.value ' , 'ccad.value ' ) . ' = ? ' ,
603595 1
@@ -841,11 +833,7 @@ protected function getAllProducts(Store $store)
841833 \Magento \Catalog \Model \Product \Attribute \Source \Status::STATUS_ENABLED
842834 )->where (
843835 $ this ->connection ->getIfNullSql ('cpvs.value ' , 'cpvd.value ' ) . ' IN (?) ' ,
844- [
845- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_CATALOG ,
846- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_IN_SEARCH ,
847- \Magento \Catalog \Model \Product \Visibility::VISIBILITY_BOTH
848- ]
836+ $ this ->config ->getVisibility ()->getVisibleInSiteIds ()
849837 )->group (
850838 'cp.entity_id '
851839 )->columns (
0 commit comments