Entry.popular_entries always returns nil for comment_count
Bug #128270 reported by
JW
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Chameleon (inactive) |
Fix Released
|
Low
|
JW |
Bug Description
Entry.popular_
Changed in chameleon: | |
milestone: | 0.6.2 → 0.6.1.2 |
Changed in chameleon: | |
milestone: | 0.6.1.2 → 0.6.2 |
Changed in chameleon: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.