]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5991 Add activation=true when selecting a quality profile when criterion is...
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 12:16:48 +0000 (14:16 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 12:16:55 +0000 (14:16 +0200)
server/sonar-web/src/main/coffee/coding-rules/views/filters/activation-filter-view.coffee

index 179df18a25385ea3f40b8e9b7b8ae8e7ccfb580d..da9e451a8c685245b4a3dcf1ee516f30236a0112 100644 (file)
@@ -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()