diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-01-30 15:54:42 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-01-30 15:54:42 +0100 |
commit | f918ed8f2d59a700ae067db7800a3a0b7c8c5a1c (patch) | |
tree | e33b6283f7046921d22e72204a14f9aa365d3f9c | |
parent | 7275bb426628cf30b09185b80598319425478886 (diff) | |
download | sonarqube-f918ed8f2d59a700ae067db7800a3a0b7c8c5a1c.tar.gz sonarqube-f918ed8f2d59a700ae067db7800a3a0b7c8c5a1c.zip |
SONAR-5345 use context query when request a single facet
-rw-r--r-- | server/sonar-web/src/main/coffee/issues/controller.coffee | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/controller.coffee b/server/sonar-web/src/main/coffee/issues/controller.coffee index 81b4ce1e1c8..5a2f1f313e8 100644 --- a/server/sonar-web/src/main/coffee/issues/controller.coffee +++ b/server/sonar-web/src/main/coffee/issues/controller.coffee @@ -80,6 +80,7 @@ define [ requestFacet: (id) -> facet = @options.app.facets.get id data = _.extend { facets: id, ps: 1 }, @options.app.state.get('query') + _.extend data, @options.app.state.get 'contextQuery' if @options.app.state.get 'isContext' $.get "#{baseUrl}/api/issues/search", data, (r) => FACET_DATA_FIELDS.forEach (field) => @options.app.facets[field] = @_mergeCollections @options.app.facets[field], r[field] |