From 7b97a5546e48dfd99f597cd0622857f236be0b3e Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Wed, 19 Oct 2022 03:37:59 +0200 Subject: [PATCH] Revert changes to Mage_Catalog_Model_Layer::prepareProductCollection(), ref #2603 --- app/code/core/Mage/Catalog/Model/Layer.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/code/core/Mage/Catalog/Model/Layer.php b/app/code/core/Mage/Catalog/Model/Layer.php index 940e7cfeed4..32fd1e7d129 100644 --- a/app/code/core/Mage/Catalog/Model/Layer.php +++ b/app/code/core/Mage/Catalog/Model/Layer.php @@ -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;