Entry.popular_entries always returns nil for comment_count

Bug #128270 reported by JW
2
Affects Status Importance Assigned to Milestone
Chameleon (inactive)
Fix Released
Low
JW

Bug Description

Entry.popular_entries returns a set of popular entries and their comment count. The comment_count is however always "nil".

Revision history for this message
JW (jw-00000) wrote :

This bug occurs because the Ruby code expects MySQL to return a column "count", while MySQL returns "COUNT(*)". This happened because I forgot to write "COUNT(*) AS count" in the SQL query. This was fixed.

Changed in chameleon:
assignee: nobody → jw-00000
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
JW (jw-00000) wrote :

(This is currently only fixed in the unit-tests branch, and the rails-1-2 which is synched with unit-tests.)

Revision history for this message
JW (jw-00000) wrote :

Fixed in trunk.

JW (jw-00000)
Changed in chameleon:
milestone: 0.6.2 → 0.6.1.2
JW (jw-00000)
Changed in chameleon:
milestone: 0.6.1.2 → 0.6.2
JW (jw-00000)
Changed in chameleon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.