From: Jean-Baptiste Lievremont Date: Wed, 30 Jul 2014 16:00:43 +0000 (+0200) Subject: SONAR-5230 Display "Share..." checkbox on all copy forms X-Git-Tag: 4.5-RC1~320^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=12f243728f42a5eb1e714ff15f0240109193f1d8;p=sonarqube.git SONAR-5230 Display "Share..." checkbox on all copy forms --- 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 +