File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/core/Mage/Tag/Model/Resource/Indexer Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -154,13 +154,14 @@ public function aggregate($tagIds = null)
154
154
'tr.store_id ' ,
155
155
'customers ' => 'COUNT(DISTINCT tr.customer_id) ' ,
156
156
'products ' => 'COUNT(DISTINCT tr.product_id) ' ,
157
- 'popularity ' => 'COUNT(tr.customer_id) + MIN( '
157
+ 'popularity ' => new Zend_Db_Expr (
158
+ 'COUNT(tr.customer_id) + MIN( '
158
159
. $ writeAdapter ->getCheckSql (
159
160
'tp.base_popularity IS NOT NULL ' ,
160
161
'tp.base_popularity ' ,
161
162
'0 '
162
- )
163
- . ' ) ' ,
163
+ ) . ' ) '
164
+ ) ,
164
165
'uses ' => new Zend_Db_Expr (0 ), // deprecated since 1.4.0.1
165
166
'historical_uses ' => new Zend_Db_Expr (0 ), // deprecated since 1.4.0.1
166
167
'base_popularity ' => new Zend_Db_Expr (0 ) // deprecated since 1.4.0.1
You can’t perform that action at this time.
0 commit comments