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 177d1ce commit fe27d58Copy full SHA for fe27d58
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()) {
+ //unset($this->_productLimitationFilters['category_is_anchor']);
918
} else {
919
$this->_productLimitationFilters['category_is_anchor'] = 1;
920
}
0 commit comments