mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
When creating categories (or, at least, subcategories), certain integer values are set to a default of NULL: topics_week, topics_month, topics_year, posts_week, posts_month, and posts_year. This causes consistent exceptions when trying to visit `/categories`, with the offending line being in `CategoryDetailedSerializer#count_with_subcategories`. This attempts to coerce nil into Fixnum. A fix could be to convert to 0 in the code, but these attributes should really never be NULL. If there are no posts or topics, they should be 0 to maintain data integrity. Signed-off-by: David Celis <me@davidcel.is> |
||
---|---|---|
.. | ||
fixtures | ||
migrate |