BUGFIX: cannot sort topic

This commit is contained in:
Régis Hanol 2014-01-14 10:30:05 +01:00
parent 9ab5b3a123
commit 2a89f51d19

View File

@ -65,7 +65,8 @@ Discourse.TopicList = Discourse.Model.extend({
params.sort_descending = sortOrder.get('descending');
this.set('loaded', false);
finderFor(this.get('filter'), params).then(function (result) {
var finder = finderFor(this.get('filter'), params);
finder().then(function (result) {
var newTopics = Discourse.TopicList.topicsFrom(result),
topics = self.get('topics');