diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-10-08 14:16:48 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-10-08 14:16:55 +0200 |
commit | 1d05be2d33309c07476298e974c6cd62ef586b01 (patch) | |
tree | 5554d6bc5503a98d149d49f2bb24791aca0abd9b /server | |
parent | 7eb13c86cafb14b8d7afbb3737a27fb3c6fe9d51 (diff) | |
download | sonarqube-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.coffee | 3 |
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() |