aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-04-27 11:45:01 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-04-27 11:45:01 +0200
commitb0e97b9ed60b4ad6a00c55fdb6f621bc197845f4 (patch)
treebbed92348fd9f74a5cc398098a82e0030ac7008a /sonar-server/src/main
parente86b05a3cd25415544cfbf0698244fa321e7699f (diff)
downloadsonarqube-b0e97b9ed60b4ad6a00c55fdb6f621bc197845f4.tar.gz
sonarqube-b0e97b9ed60b4ad6a00c55fdb6f621bc197845f4.zip
SONAR-2179 the 'bulk change' option of quality profiles fail when there are too many selected rules
Diffstat (limited to 'sonar-server/src/main')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb
index 4f8e7d42099..ecc293ac9a6 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb
@@ -83,8 +83,9 @@
<% if enable_modification %>
<li class="marginleft10">
<div class="bulk-edit">Bulk Change:
- <% rule_ids_string=@rules.map{|r| r.id}.join(',') %>
- <form action="<%= url_for params.merge({:action => 'bulk_edit', :id => @profile.id, :bulk_rule_ids => rule_ids_string})-%>" method="POST" style="display: inline;vertical-align: middle" id="bulk-form">
+ <form action="<%= ApplicationController.root_context -%>/rules_configuration/bulk_edit" method="POST" style="display: inline;vertical-align: middle" id="bulk-form">
+ <input type="hidden" name="id" value="<%= @profile.id -%>"/>
+ <input type="hidden" name="bulk_rule_ids" value="<%= @rules.map{|r| r.id}.join(',') -%>"/>
<select name="bulk_action" onChange="submitBulkForm()" style="height: 16px;margin: 0; padding: 0;vertical-align: top">
<option value="" selected></option>
<option value="activate">Activate all</option>