aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-10-08 14:16:48 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-10-08 14:16:55 +0200
commit1d05be2d33309c07476298e974c6cd62ef586b01 (patch)
tree5554d6bc5503a98d149d49f2bb24791aca0abd9b /server
parent7eb13c86cafb14b8d7afbb3737a27fb3c6fe9d51 (diff)
downloadsonarqube-1d05be2d33309c07476298e974c6cd62ef586b01.tar.gz
sonarqube-1d05be2d33309c07476298e974c6cd62ef586b01.zip
SONAR-5991 Add activation=true when selecting a quality profile when criterion is empty or unset
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/coffee/coding-rules/views/filters/activation-filter-view.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/filters/activation-filter-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/filters/activation-filter-view.coffee
index 179df18a253..da9e451a8c6 100644
--- a/server/sonar-web/src/main/coffee/coding-rules/views/filters/activation-filter-view.coffee
+++ b/server/sonar-web/src/main/coffee/coding-rules/views/filters/activation-filter-view.coffee
@@ -10,7 +10,8 @@ define [
makeActive: ->
super
- unless @model.get 'value'
+ filterValue = @model.get 'value'
+ if !filterValue or filterValue.length == 0
@choices.each (model) -> model.set 'checked', model.id == 'true'
@model.set 'value', ['true']
@detailsView.updateLists()