##// END OF EJS Templates
Allows bulk change issue private flag (#10042)....
Jean-Philippe Lang -
r8576:7f4e3771d8dc
parent child
Show More
@@ -228,6 +228,7 class IssuesController < ApplicationController
228 @assignables = target_projects.map(&:assignable_users).inject{|memo,a| memo & a}
228 @assignables = target_projects.map(&:assignable_users).inject{|memo,a| memo & a}
229 @trackers = target_projects.map(&:trackers).inject{|memo,t| memo & t}
229 @trackers = target_projects.map(&:trackers).inject{|memo,t| memo & t}
230
230
231 @safe_attributes = @issues.map(&:safe_attribute_names).inject {|memo,attrs| memo & attrs}
231 render :layout => false if request.xhr?
232 render :layout => false if request.xhr?
232 end
233 end
233
234
@@ -69,6 +69,14
69 </div>
69 </div>
70
70
71 <div class="splitcontentright">
71 <div class="splitcontentright">
72 <% if @safe_attributes.include?('is_private') %>
73 <p>
74 <label for='issue_is_private'><%= l(:field_is_private) %></label>
75 <%= select_tag('issue[is_private]', content_tag('option', l(:label_no_change_option), :value => '') +
76 content_tag('option', l(:general_text_Yes), :value => '1') +
77 content_tag('option', l(:general_text_No), :value => '0')) %>
78 </p>
79 <% end %>
72 <% if @project && User.current.allowed_to?(:manage_subtasks, @project) %>
80 <% if @project && User.current.allowed_to?(:manage_subtasks, @project) %>
73 <p>
81 <p>
74 <label for='issue_parent_issue_id'><%= l(:field_parent_issue) %></label>
82 <label for='issue_parent_issue_id'><%= l(:field_parent_issue) %></label>
General Comments 0
You need to be logged in to leave comments. Login now