aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-12 15:48:30 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-12 15:54:28 +0100
commitee74a8ef7576c342aa0379b8f1a21336415ebf7a (patch)
tree5eca8dd6fda11331cd1699cc847e6ed8f0f86a86
parent5288f5bf9140a2e465ac871e0cf7dc638c12322e (diff)
downloadsonarqube-ee74a8ef7576c342aa0379b8f1a21336415ebf7a.tar.gz
sonarqube-ee74a8ef7576c342aa0379b8f1a21336415ebf7a.zip
SONAR-5999 Fail to render profile comparison page when parameter id1 is declared as an array
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/compare.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/compare.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/compare.html.erb
index 72f4d29b6d6..5f0578dc5cc 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/compare.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/compare.html.erb
@@ -9,12 +9,12 @@
<form method="GET" class="marginbottom10">
<select name="id1" class="small">
<option value=""></option>
- <%= options_for_profiles(@profiles, params[:id1].to_i) %>
+ <%= options_for_profiles(@profiles, params[:id1]) %>
</select>
<select name="id2" class="small">
<option value=""></option>
- <%= options_for_profiles(@profiles, params[:id2].to_i) %>
+ <%= options_for_profiles(@profiles, params[:id2]) %>
</select>
<input type="submit" value="<%= message('compare') -%>" class="small" id="submit-compare"/>
</form>