Skip to content

Commit fe27d58

Browse files
committed
ACP2E-1172: categoryList Graphql request show 0 product count
1 parent 177d1ce commit fe27d58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ public function getLimitationFilters()
913913
public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
914914
{
915915
$this->_productLimitationFilters['category_id'] = $category->getId();
916-
if ($category->getIsAnchor()) {
917-
unset($this->_productLimitationFilters['category_is_anchor']);
916+
if (!$category->getIsAnchor()) {
917+
//unset($this->_productLimitationFilters['category_is_anchor']);
918918
} else {
919919
$this->_productLimitationFilters['category_is_anchor'] = 1;
920920
}

0 commit comments

Comments
 (0)