Skip to content

Commit b1f8d72

Browse files
committed
6785 Fix bug with flat product collections called for different stores
1 parent b7e4a46 commit b1f8d72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/code/community/IntegerNet/Solr/Model/Bridge/ProductRepository.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ function($parentId, $childrenIds) {
7070
*/
7171
public function getAllProductIds()
7272
{
73+
// Fixes a bug with flat product collections called for different stores, see https://magento.stackexchange.com/q/30956/2207
74+
Mage::unregister('_resource_singleton/catalog/product_flat');
75+
7376
/** @var $productCollection Mage_Catalog_Model_Resource_Product_Collection */
7477
$productCollection = Mage::getResourceModel('catalog/product_collection');
7578
return $productCollection->getAllIds();

0 commit comments

Comments
 (0)