Skip to content

Commit

Permalink
Revert changes to Mage_Catalog_Model_Layer::prepareProductCollection(…
Browse files Browse the repository at this point in the history
…), ref #2603 (#2662)
  • Loading branch information
sreichel authored Oct 20, 2022
1 parent f48e168 commit f251bbf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/code/core/Mage/Catalog/Model/Layer.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ public function prepareProductCollection($collection)
->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
->addPriceData()
->addTaxPercents()
->addUrlRewrite($this->getCurrentCategory()->getId())
->addAttributeToFilter('status', [
'in' => Mage::getSingleton('catalog/product_status')->getVisibleStatusIds()
]);
->addUrlRewrite($this->getCurrentCategory()->getId());
Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);

return $this;
Expand Down

0 comments on commit f251bbf

Please sign in to comment.