From 0dbcb4ec8add06e59c26ebaddb4df2a2e9848809 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 1 Dec 2016 11:24:30 -0500 Subject: [PATCH] FIX: `lookupFactory` doesn't exist on `getOwner` result --- app/assets/javascripts/discourse/routes/application.js.es6 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/routes/application.js.es6 b/app/assets/javascripts/discourse/routes/application.js.es6 index 187199ff533..1c3fed9a6bf 100644 --- a/app/assets/javascripts/discourse/routes/application.js.es6 +++ b/app/assets/javascripts/discourse/routes/application.js.es6 @@ -146,10 +146,9 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, { }, changeBulkTemplate(w) { - const controllerName = w.replace('modal/', ''), - factory = getOwner(this).lookupFactory('controller:' + controllerName); - - this.render(w, {into: 'modal/topic-bulk-actions', outlet: 'bulkOutlet', controller: factory ? controllerName : 'topic-bulk-actions'}); + const controllerName = w.replace('modal/', ''); + const controller = getOwner(this).lookup('controller:' + controllerName); + this.render(w, {into: 'modal/topic-bulk-actions', outlet: 'bulkOutlet', controller: controller ? controllerName : 'topic-bulk-actions'}); }, createNewTopicViaParams(title, body, category_id, category, tags) {