From: Julien Lancelot Date: Mon, 16 Sep 2013 09:32:48 +0000 (+0200) Subject: SONAR-4654 The issue bulk change does not work correctly when paginating X-Git-Tag: 4.0~437 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b0fe84;p=sonarqube.git SONAR-4654 The issue bulk change does not work correctly when paginating --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb index a35dab1574a..9d92c1b406f 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb @@ -161,6 +161,8 @@ class IssuesController < ApplicationController # GET /issues/bulk_change_form?[&criteria] def bulk_change_form issues_query_params = params.clone.merge({'pageSize' => -1}) + # SONAR-4654 pagination parameters should be remove when loading issues for bulk change + issues_query_params.delete('pageIndex') if params[:id] @issue_filter_result = Internal.issues.execute(params[:id].to_i, issues_query_params) else @@ -211,4 +213,4 @@ class IssuesController < ApplicationController Internal.issues.deserializeFilterQuery(filter).to_hash end -end \ No newline at end of file +end