summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-06-07 00:37:12 +0000
committerGo MAEDA <maeda@farend.jp>2018-06-07 00:37:12 +0000
commitc103a59465cdf3d49988207c574cdc22655e2e3e (patch)
tree404d0c02f76346523e4f21b8743b1275c63674bc /app
parent77df7ff67a9fece96c09e0b56b13b715889fb64f (diff)
downloadredmine-c103a59465cdf3d49988207c574cdc22655e2e3e.tar.gz
redmine-c103a59465cdf3d49988207c574cdc22655e2e3e.zip
Merged r17368 from trunk to 3.4-stable (#27863).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17369 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 59f642a23..038a6accd 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -1632,6 +1632,7 @@ class Issue < ActiveRecord::Base
copy.author = author
copy.project = project
copy.parent_issue_id = copied_issue_ids[child.parent_id]
+ copy.fixed_version_id = nil unless child.fixed_version.present? && child.fixed_version.status == 'open'
unless copy.save
logger.error "Could not copy subtask ##{child.id} while copying ##{@copied_from.id} to ##{id} due to validation errors: #{copy.errors.full_messages.join(', ')}" if logger
next