From: Julien Lancelot Date: Mon, 8 Jul 2013 07:46:50 +0000 (+0200) Subject: SONAR-4418 Fix issues bulk change display on resource popup X-Git-Tag: 3.7~220 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3b1037379fe64ede71e194392a99b57e9c5fff07;p=sonarqube.git SONAR-4418 Fix issues bulk change display on resource popup --- 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 b30592b268d..41bd55e2458 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 @@ -157,7 +157,7 @@ class IssuesController < ApplicationController def bulk_change verify_post_request Internal.issues.bulkChange(params, params[:comment]) - render :text => params[:issues_query_params], :status => 200 + render :text => '', :status => 200 end diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/no_dashboard.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/no_dashboard.html.erb index 097babb7f52..cbd8542835a 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/no_dashboard.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/no_dashboard.html.erb @@ -13,7 +13,7 @@ } // refresh page after issues bulk change - function onBulkIssues(issues_query_params, component_key){ + function onBulkIssues(issues_query_params){ window.location.reload(); } diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb index f076a1c8d58..cd7ccad3ee4 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb @@ -13,8 +13,8 @@ } // refresh page after issues bulk change - function onBulkIssues(issues_query_params, component_key){ - d(component_key); + function onBulkIssues(issues_query_params){ + d(issues_query_params['components']); closeModalWindow(); } diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_bulk_change_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_bulk_change_form.html.erb index 43d066db14f..8ffbb27f2dd 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_bulk_change_form.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_bulk_change_form.html.erb @@ -4,11 +4,7 @@ issues = issues_result.issues max_page_size_reached = issues_result.issues.size >= issues_result.paging.pageSize() - component_key = issue_query.components.to_a.first if issue_query.components and issue_query.components.size == 1 project_key = issue_query.componentRoots.to_a.first if issue_query.componentRoots and issue_query.componentRoots.size == 1 - if params[:from] == 'drilldown' && !project_key - project_key = Project.by_key(component_key).root_project.kee - end transitions_by_issues = {} unresolved_issues = 0 @@ -24,7 +20,6 @@ %>
-