mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 06:09:15 +08:00
FIX: ensures category order keeps consistent (#10165)
Before this change: - first full page load would get category defaults defined un cateory settings - a navigation to a topic and then back to categories list would reset defaut to the ones defined in discovery/topics
This commit is contained in:
@ -684,6 +684,9 @@ class TopicQuery
|
||||
if sort_order
|
||||
options[:order] = sort_order
|
||||
options[:ascending] = !!sort_ascending ? 'true' : 'false'
|
||||
else
|
||||
options[:order] = 'default'
|
||||
options[:ascending] = 'false'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user