Skip to content

Commit eeb2d5b

Browse files
committed
ACP2E-1172: categoryList Graphql request show 0 product count
1 parent a5fbd6a commit eeb2d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
914914
{
915915
$this->_productLimitationFilters['category_id'] = $category->getId();
916916
if ($category->getIsAnchor()) {
917-
$this->_productLimitationFilters['category_is_anchor'] = 0;
917+
unset($this->_productLimitationFilters['category_is_anchor']);
918918
} else {
919919
$this->_productLimitationFilters['category_is_anchor'] = 1;
920920
}

0 commit comments

Comments
 (0)