mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -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