REGRESSION: pms not ordering on bumped_at descending
This commit is contained in:
parent
0ccce7a59b
commit
738f2cb72c
|
@ -228,7 +228,7 @@ class TopicQuery
|
|||
result = Topic.includes(:allowed_users)
|
||||
.where("topics.id IN (SELECT topic_id FROM topic_allowed_users WHERE user_id = #{user.id.to_i})")
|
||||
.joins("LEFT OUTER JOIN topic_users AS tu ON (topics.id = tu.topic_id AND tu.user_id = #{user.id.to_i})")
|
||||
.order("topics.bumped_at")
|
||||
.order("topics.bumped_at DESC")
|
||||
.private_messages
|
||||
|
||||
result = result.limit(options[:per_page]) unless options[:limit] == false
|
||||
|
|
Loading…
Reference in New Issue