From 2a89f51d19e7f69b4a15ccc54a1dc91ece2db456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 14 Jan 2014 10:30:05 +0100 Subject: [PATCH] BUGFIX: cannot sort topic --- app/assets/javascripts/discourse/models/topic_list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/topic_list.js b/app/assets/javascripts/discourse/models/topic_list.js index 0eccd3f5ad3..9c762f2640d 100644 --- a/app/assets/javascripts/discourse/models/topic_list.js +++ b/app/assets/javascripts/discourse/models/topic_list.js @@ -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');