Forked from anonymous/redmine-1.4-clone-subtask-link.patch
Created
October 31, 2014 15:59
Revisions
-
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ commit fbe8901dcf2651c1e8670191476f49ffe2e7e597 Author: Alex Dergachev <alex@evolvingweb.ca> Date: Sun Oct 23 22:39:23 2011 -0400 core hack to add "Clone as subtask" link next to subtask Add link; refs #5849 diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index b8fffa0..5d1f2e8 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -85,6 +85,7 @@ <div id="issue_tree"> <div class="contextual"> <%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> + <%= link_to("Clone", {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue.id, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> </div> <p><strong><%=l(:label_subtask_plural)%></strong></p> <%= render_descendants_tree(@issue) unless @issue.leaf? %>