From e8d0aa97774fa5a64a8ad2519549bc06b98a53ce Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 27 Aug 2015 11:43:32 +1000 Subject: [PATCH] FIX: since stuff is unbound in the list we must issue a refresh on all bulk actions Otherwise when you recategorize stuff will look as though its in the wrong category --- .../javascripts/discourse/controllers/topic-bulk-actions.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/controllers/topic-bulk-actions.js.es6 b/app/assets/javascripts/discourse/controllers/topic-bulk-actions.js.es6 index aa986a183fb..b5e8bcbb4bf 100644 --- a/app/assets/javascripts/discourse/controllers/topic-bulk-actions.js.es6 +++ b/app/assets/javascripts/discourse/controllers/topic-bulk-actions.js.es6 @@ -60,6 +60,8 @@ export default Ember.ArrayController.extend(ModalFunctionality, { this.perform(operation).then(function (topics) { if (topics) { topics.forEach(cb); + const refreshTarget = self.get('refreshTarget'); + if (refreshTarget) { refreshTarget.send('refresh'); } self.send('closeModal'); } });