mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
Copying an issue does not copy parent task id (#12893).
git-svn-id: http://svn.redmine.org/redmine/trunk@15058 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -415,6 +415,7 @@ class IssuesController < ApplicationController
|
||||
@copy_attachments = params[:copy_attachments].present? || request.get?
|
||||
@copy_subtasks = params[:copy_subtasks].present? || request.get?
|
||||
@issue.copy_from(@copy_from, :attachments => @copy_attachments, :subtasks => @copy_subtasks, :link => @link_copy)
|
||||
@issue.parent_issue_id = @copy_from.parent_id
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user