From 664d3a7dbf71ac687d8ee1208ad2a309d3a59a55 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 16 Sep 2013 11:32:48 +0200 Subject: [PATCH] SONAR-4654 The issue bulk change does not work correctly when paginating (cherry picked from commit 4b0fe84) --- .../main/webapp/WEB-INF/app/controllers/issues_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5