From 078177cf7989a84d673cbef58e4390feae1923e9 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 13 Jul 2015 11:13:13 +1000 Subject: [PATCH] FIX: show more results on search page was not performing a new search We always want to update model if query params are changed on topic list --- .../controllers/discovery-sortable.js.es6 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/discovery-sortable.js.es6 b/app/assets/javascripts/discourse/controllers/discovery-sortable.js.es6 index d6077dd0999..56d4d3a90dc 100644 --- a/app/assets/javascripts/discourse/controllers/discovery-sortable.js.es6 +++ b/app/assets/javascripts/discourse/controllers/discovery-sortable.js.es6 @@ -2,13 +2,13 @@ import DiscourseController from 'discourse/controllers/controller'; // Just add query params here to have them automatically passed to topic list filters. export var queryParams = { - order: { replace: true }, - ascending: { replace: true }, - status: { replace: true }, - state: { replace: true }, - search: { replace: true }, - max_posts: { replace: true }, - q: { replace: true } + order: { replace: true, refreshModel: true }, + ascending: { replace: true, refreshModel: true }, + status: { replace: true, refreshModel: true }, + state: { replace: true, refreshModel: true }, + search: { replace: true, refreshModel: true }, + max_posts: { replace: true, refreshModel: true }, + q: { replace: true, refreshModel: true } }; // Basic controller options