mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: allow ordering for term-less queries
This commit is contained in:
parent
a3831a7003
commit
61ceaef4e5
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ class Search
|
|||
|
||||
end
|
||||
|
||||
if @order == :latest || @term.blank?
|
||||
if @order == :latest || (@term.blank? && !@order)
|
||||
if opts[:aggregate_search]
|
||||
posts = posts.order("MAX(posts.created_at) DESC")
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue