From 0bc0dd00f9c45f36bca842d655082e90ff20071c Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 13 Oct 2015 14:42:47 +0200 Subject: [PATCH] fix applying of issue filter when user is not authenticated --- .../src/main/js/apps/issues/router.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/issues/router.js b/server/sonar-web/src/main/js/apps/issues/router.js index 6cb6622da6e..fafe7a2b8c7 100644 --- a/server/sonar-web/src/main/js/apps/issues/router.js +++ b/server/sonar-web/src/main/js/apps/issues/router.js @@ -25,17 +25,15 @@ export default Router.extend({ if (query.id != null) { var filter = this.options.app.filters.get(query.id); delete query.id; - return filter.fetch().done(function () { - if (Object.keys(query).length > 0) { - that.options.app.controller.applyFilter(filter, true); - that.options.app.state.setQuery(query); - that.options.app.state.set({ changed: true }); - } else { - that.options.app.controller.applyFilter(filter); - } - }); + if (Object.keys(query).length > 0) { + that.options.app.controller.applyFilter(filter, true); + that.options.app.state.setQuery(query); + that.options.app.state.set({ changed: true }); + } else { + that.options.app.controller.applyFilter(filter); + } } else { - return this.options.app.state.setQuery(query); + this.options.app.state.setQuery(query); } } }); -- 2.39.5