Patch #27008 » 0001-try-to-always-preselect-a-suitable-tracker-for-new-s.patch
app/helpers/issues_helper.rb | ||
---|---|---|
184 | 184 |
:parent_issue_id => issue |
185 | 185 |
} |
186 | 186 |
attrs[:tracker_id] = issue.tracker unless issue.tracker.disabled_core_fields.include?('parent_issue_id') |
187 |
attrs[:tracker_id] ||= Issue.allowed_target_trackers(issue.project).detect do |tracker| |
|
188 |
tracker.core_fields.include? 'parent_issue_id' |
|
189 |
end |
|
187 | 190 |
link_to(l(:button_add), new_project_issue_path(issue.project, :issue => attrs, :back_url => issue_path(issue))) |
188 | 191 |
end |
189 | 192 |