summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-10 15:47:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-10 15:47:52 +0000
commitea635ece05b8f2c61b953060826d2408617f146f (patch)
treed498f1414357ce15ad6e8eacda0555c62ba59359 /app/controllers/issues_controller.rb
parent300e5e4652083cae3c5bce3d021f5a1745ae4e5c (diff)
downloadredmine-ea635ece05b8f2c61b953060826d2408617f146f.tar.gz
redmine-ea635ece05b8f2c61b953060826d2408617f146f.zip
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
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 29fc0c9f3..fa911a11b 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -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