From 1d05be2d33309c07476298e974c6cd62ef586b01 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 8 Oct 2014 14:16:48 +0200 Subject: [PATCH] SONAR-5991 Add activation=true when selecting a quality profile when criterion is empty or unset --- .../coding-rules/views/filters/activation-filter-view.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.39.5