]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2179 the 'bulk change' option of quality profiles fail when there are too many...
authorsimonbrandhof <simon.brandhof@gmail.com>
Wed, 27 Apr 2011 09:45:01 +0000 (11:45 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Wed, 27 Apr 2011 09:45:01 +0000 (11:45 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb

index 4f8e7d42099663df422e51e9990e9db802a2d629..ecc293ac9a60c5d215e0ead7a3bf0312c395e9a6 100644 (file)
@@ -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>