Fix topics_year, topics_month, topics_week for uncategorized category
This commit is contained in:
parent
3f2907a924
commit
1145e4bfd9
|
@ -111,7 +111,7 @@ class Category < ActiveRecord::Base
|
|||
topics = Topic
|
||||
.select("COUNT(*) topic_count")
|
||||
.where("topics.category_id = categories.id")
|
||||
.where("categories.topic_id <> topics.id")
|
||||
.where("categories.topic_id <> topics.id OR categories.topic_id is null")
|
||||
.visible
|
||||
|
||||
topics_with_post_count = Topic
|
||||
|
|
Loading…
Reference in New Issue