From 12f243728f42a5eb1e714ff15f0240109193f1d8 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 30 Jul 2014 18:00:43 +0200 Subject: [PATCH] SONAR-5230 Display "Share..." checkbox on all copy forms --- .../main/webapp/WEB-INF/app/controllers/issues_controller.rb | 1 + .../webapp/WEB-INF/app/controllers/measures_controller.rb | 1 + .../WEB-INF/app/views/issues/_filter_shared_form.html.erb | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb index fc6ad3c817a..7690cea09be 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb @@ -109,6 +109,7 @@ class IssuesController < ApplicationController def copy_form require_parameters :id @filter = find_filter(params[:id].to_i) + @filter.setUser(nil) @filter.setShared(false) render :partial => 'issues/filter_copy_form' end diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb index ca126096321..7c955be664b 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb @@ -166,6 +166,7 @@ class MeasuresController < ApplicationController require_parameters :id @filter = find_filter(params[:id]) @filter.shared = false + @filter.user_id = nil render :partial => 'measures/copy_form' end diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/_filter_shared_form.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/_filter_shared_form.html.erb index d90b9660b73..24c3891792a 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/_filter_shared_form.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/_filter_shared_form.html.erb @@ -22,7 +22,7 @@ <% end %> <% if Internal.issues.canUserShareIssueFilter() %> <% end %> - \ No newline at end of file + -- 2.39.5