mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-22 04:45:46 -04:00
regression and missing filter
This commit is contained in:
parent
4dbd065026
commit
2a2bd3e946
2 changed files with 7 additions and 2 deletions
|
@ -42,7 +42,12 @@ Discourse.TopicList = Discourse.Model.extend({
|
|||
params = this.get('params');
|
||||
|
||||
params.order = order || params.order;
|
||||
params.ascending = ascending || params.ascending || true;
|
||||
|
||||
if (ascending === undefined) {
|
||||
params.ascending = ascending;
|
||||
} else {
|
||||
params.ascending = ascending;
|
||||
}
|
||||
|
||||
this.set('loaded', false);
|
||||
var finder = finderFor(this.get('filter'), params);
|
||||
|
|
|
@ -64,7 +64,7 @@ module Discourse
|
|||
end
|
||||
|
||||
def self.anonymous_filters
|
||||
@anonymous_filters ||= [:latest, :top, :categories]
|
||||
@anonymous_filters ||= [:latest, :top, :categories, :search]
|
||||
end
|
||||
|
||||
def self.logged_in_filters
|
||||
|
|
Loading…
Reference in a new issue