FIX: adding the 'contains_messages' column back

This commit is contained in:
Régis Hanol
2016-01-12 12:06:51 +01:00
parent 8049dfdfda
commit e2744fc19f
12 changed files with 21 additions and 15 deletions

View File

@@ -199,7 +199,6 @@ class TopicQuery
end
def prioritize_pinned_topics(topics, options)
pinned_clause = options[:category_id] ? "topics.category_id = #{options[:category_id].to_i} AND" : "pinned_globally AND "
pinned_clause << " pinned_at IS NOT NULL "
if @user