aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-01-30 15:54:42 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-01-30 15:54:42 +0100
commitf918ed8f2d59a700ae067db7800a3a0b7c8c5a1c (patch)
treee33b6283f7046921d22e72204a14f9aa365d3f9c
parent7275bb426628cf30b09185b80598319425478886 (diff)
downloadsonarqube-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.coffee1
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]