aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/hbs
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-04-01 10:01:45 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-04-01 10:01:53 +0200
commit8afbf65b0bed14347cae7d577489a1a1c86dea87 (patch)
tree4b74c27332dcc66b49fea889ac7d473c71c325a5 /server/sonar-web/src/main/hbs
parent6723c6763bef156e57e2dba032216703b8a9c9ea (diff)
downloadsonarqube-8afbf65b0bed14347cae7d577489a1a1c86dea87.tar.gz
sonarqube-8afbf65b0bed14347cae7d577489a1a1c86dea87.zip
pre-select only option in rules bulk change form
Diffstat (limited to 'server/sonar-web/src/main/hbs')
-rw-r--r--server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change-modal.hbs4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change-modal.hbs b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change-modal.hbs
index 2da42ab924f..8816b6cb5af 100644
--- a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change-modal.hbs
+++ b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change-modal.hbs
@@ -25,7 +25,9 @@
{{else}}
<select id="coding-rules-bulk-change-profile" multiple>
{{#each availableQualityProfiles}}
- <option value="{{key}}">{{name}} - {{language}}</option>
+ <option value="{{key}}" {{#ifLength ../availableQualityProfiles 1}}selected{{/ifLength}}>
+ {{name}} - {{language}}
+ </option>
{{/each}}
</select>
{{/if}}