mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 23:58:12 -05:00
FIX: allow ordering for term-less queries
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user