We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf2b07 commit a5fbd6aCopy full SHA for a5fbd6a
app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php
@@ -913,8 +913,8 @@ public function getLimitationFilters()
913
public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
914
{
915
$this->_productLimitationFilters['category_id'] = $category->getId();
916
- if (!$category->getIsAnchor()) {
917
- //unset($this->_productLimitationFilters['category_is_anchor']);
+ if ($category->getIsAnchor()) {
+ $this->_productLimitationFilters['category_is_anchor'] = 0;
918
} else {
919
$this->_productLimitationFilters['category_is_anchor'] = 1;
920
}
0 commit comments