Browse Source

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
tags/2.2.0
Jean-Philippe Lang 11 years ago
parent
commit
ef1f14905b
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      app/helpers/issues_helper.rb

+ 5
- 1
app/helpers/issues_helper.rb View File

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

Loading…
Cancel
Save