mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fix topics_year, topics_month, topics_week for uncategorized category
This commit is contained in:
parent
3f2907a924
commit
1145e4bfd9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue