File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ function($parentId, $childrenIds) {
70
70
*/
71
71
public function getAllProductIds ()
72
72
{
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
+
73
76
/** @var $productCollection Mage_Catalog_Model_Resource_Product_Collection */
74
77
$ productCollection = Mage::getResourceModel ('catalog/product_collection ' );
75
78
return $ productCollection ->getAllIds ();
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function shouldUseParametersBasedOnToolbar()
95
95
)
96
96
);
97
97
$ logMock ->expects ($ this ->at (4 ))->method ('debug ' )->with (
98
- 'Filter Query: store_id:1 AND is_visible_in_search_i:1 ' );
98
+ 'Filter Query: content_type:product AND store_id:1 AND is_visible_in_search_i:1 ' );
99
99
100
100
/* @var Mage_Core_Block_Text $toolbar Not using actual toolbar block which reads from session */
101
101
$ toolbar = $ this ->app ()->getLayout ()->createBlock ('core/text ' , 'product_list_toolbar ' );
You can’t perform that action at this time.
0 commit comments