Allows bulk change issue private flag (#10042).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8696 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
22317105f9
commit
7f4e3771d8
|
@ -228,6 +228,7 @@ class IssuesController < ApplicationController
|
|||
@assignables = target_projects.map(&:assignable_users).inject{|memo,a| memo & a}
|
||||
@trackers = target_projects.map(&:trackers).inject{|memo,t| memo & t}
|
||||
|
||||
@safe_attributes = @issues.map(&:safe_attribute_names).inject {|memo,attrs| memo & attrs}
|
||||
render :layout => false if request.xhr?
|
||||
end
|
||||
|
||||
|
|
|
@ -69,6 +69,14 @@
|
|||
</div>
|
||||
|
||||
<div class="splitcontentright">
|
||||
<% if @safe_attributes.include?('is_private') %>
|
||||
<p>
|
||||
<label for='issue_is_private'><%= l(:field_is_private) %></label>
|
||||
<%= select_tag('issue[is_private]', content_tag('option', l(:label_no_change_option), :value => '') +
|
||||
content_tag('option', l(:general_text_Yes), :value => '1') +
|
||||
content_tag('option', l(:general_text_No), :value => '0')) %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% if @project && User.current.allowed_to?(:manage_subtasks, @project) %>
|
||||
<p>
|
||||
<label for='issue_parent_issue_id'><%= l(:field_parent_issue) %></label>
|
||||
|
|
Loading…
Reference in New Issue