From 5003927f13f54850ca9eeac48e353df5e4e325a1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 8 Sep 2012 05:34:07 +0000 Subject: Option to copy subtasks when copying issue(s) (#6965). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10327 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/bulk_edit.html.erb | 7 +++++++ app/views/issues/new.html.erb | 6 ++++++ 2 files changed, 13 insertions(+) (limited to 'app/views/issues') diff --git a/app/views/issues/bulk_edit.html.erb b/app/views/issues/bulk_edit.html.erb index 1312aa303..bec8e2987 100644 --- a/app/views/issues/bulk_edit.html.erb +++ b/app/views/issues/bulk_edit.html.erb @@ -77,6 +77,13 @@

<% end %> +<% if @copy && @subtasks_present %> +

+ + <%= check_box_tag 'copy_subtasks', '1', true %> +

+<% end %> + <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index 63a6e2496..45a258249 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -17,6 +17,12 @@ <%= check_box_tag 'copy_attachments', '1', @copy_attachments %>

<% end %> + <% if @copy_from && !@copy_from.leaf? %> +

+ + <%= check_box_tag 'copy_subtasks', '1', @copy_subtasks %> +

+ <% end %>

<%= render :partial => 'attachments/form', :locals => {:container => @issue} %>

-- cgit v1.2.3