Browse Source

Allows bulk change issue private flag (#10042).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8696 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.4.0
Jean-Philippe Lang 12 years ago
parent
commit
7f4e3771d8
2 changed files with 9 additions and 0 deletions
  1. 1
    0
      app/controllers/issues_controller.rb
  2. 8
    0
      app/views/issues/bulk_edit.html.erb

+ 1
- 0
app/controllers/issues_controller.rb View File

@@ -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


+ 8
- 0
app/views/issues/bulk_edit.html.erb View File

@@ -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…
Cancel
Save