From 4600be9e7eb4080fa43e1a550e3c4b855efe38a7 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 23 Feb 2015 15:05:07 +0100 Subject: [PATCH] fix issues bulk change on contextualized pages, part 2 --- server/sonar-web/src/main/coffee/issues/controller.coffee | 4 ++-- .../src/main/coffee/issues/workspace-header-view.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/coffee/issues/controller.coffee b/server/sonar-web/src/main/coffee/issues/controller.coffee index 59ea4c3cf0c..0e1c5efc36a 100644 --- a/server/sonar-web/src/main/coffee/issues/controller.coffee +++ b/server/sonar-web/src/main/coffee/issues/controller.coffee @@ -104,9 +104,9 @@ define [ q - getQuery: (separator = '|') -> + getQuery: (separator = '|', addContext = false) -> filter = @options.app.state.get 'query' - _.extend filter, @options.app.state.get 'contextQuery' if @options.app.state.get 'isContext' + _.extend filter, @options.app.state.get 'contextQuery' if addContext && @options.app.state.get 'isContext' route = [] _.map filter, (value, property) -> route.push '' + property + '=' + encodeURIComponent(value) diff --git a/server/sonar-web/src/main/coffee/issues/workspace-header-view.coffee b/server/sonar-web/src/main/coffee/issues/workspace-header-view.coffee index 795b8cdc2d3..69e31378bae 100644 --- a/server/sonar-web/src/main/coffee/issues/workspace-header-view.coffee +++ b/server/sonar-web/src/main/coffee/issues/workspace-header-view.coffee @@ -39,6 +39,6 @@ define [ bulkChange: -> - query = @options.app.controller.getQuery '&' + query = @options.app.controller.getQuery '&', true url = "#{baseUrl}/issues/bulk_change_form?#{query}" openModalWindow url, {} -- 2.39.5