diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-17 17:00:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-17 17:00:24 +0000 |
commit | ef1f14905b71030236fb905398d7926bc196f3e8 (patch) | |
tree | acf96f2fe4e9154a6bf874b334679906fd9589ae /app/helpers | |
parent | b8fbb41d5f6360749b0e6137a74d008f892122ac (diff) | |
download | redmine-ef1f14905b71030236fb905398d7926bc196f3e8.tar.gz redmine-ef1f14905b71030236fb905398d7926bc196f3e8.zip |
Use parent tracker as the default tracker when adding a subtask (#12113).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10662 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/issues_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 09d6ed5fa..efe16f31d 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -96,7 +96,11 @@ module IssuesHelper # Returns a link for adding a new subtask to the given issue def link_to_new_subtask(issue) - link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => issue.project, :issue => {:parent_issue_id => issue}}) + attrs = { + :tracker_id => issue.tracker, + :parent_issue_id => issue + } + link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => issue.project, :issue => attrs}) end class IssueFieldsRows |