Project

General

Profile

Defect #16260 » 16260-parent_task-v2.diff

patch against 3.3.2.devel.16240 - Go MAEDA, 2017-01-22 06:10

View differences:

app/helpers/issues_helper.rb (working copy)
183 183
    attrs = {
184 184
      :parent_issue_id => issue
185 185
    }
186
    attrs[:tracker_id] = issue.tracker unless issue.tracker.disabled_core_fields.include?('parent_issue_id')
186
    unless issue.tracker.disabled_core_fields.include?('parent_issue_id')
187
      attrs[:tracker_id] = issue.tracker
188
    else
189
      attrs[:tracker_id] =
190
        Issue.allowed_target_trackers(issue.project).detect do |tracker|
191
          ! tracker.disabled_core_fields.include?('parent_issue_id')
192
        end
193
    end
187 194
    link_to(l(:button_add), new_project_issue_path(issue.project, :issue => attrs))
188 195
  end
189 196

  
(2-2/3)