summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-02 10:19:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-02 10:19:12 +0000
commit2e9009b820a898e4b6baecd57160b06fb7cb87fa (patch)
treed5f24b2c8596b6750caaae7b73f25e88bcff9486 /app/models
parentb5fddf0950188df54fbd1b9b7733f22c7f8f0bdd (diff)
downloadredmine-2e9009b820a898e4b6baecd57160b06fb7cb87fa.tar.gz
redmine-2e9009b820a898e4b6baecd57160b06fb7cb87fa.zip
Merged r15848 (#23764).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15871 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index ae3dd103a..c4748609f 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -233,7 +233,7 @@ class Issue < ActiveRecord::Base
# Copies attributes from another issue, arg can be an id or an Issue
def copy_from(arg, options={})
issue = arg.is_a?(Issue) ? arg : Issue.visible.find(arg)
- self.attributes = issue.attributes.dup.except("id", "root_id", "parent_id", "lft", "rgt", "created_on", "updated_on")
+ self.attributes = issue.attributes.dup.except("id", "root_id", "parent_id", "lft", "rgt", "created_on", "updated_on", "closed_on")
self.custom_field_values = issue.custom_field_values.inject({}) {|h,v| h[v.custom_field_id] = v.value; h}
self.status = issue.status
self.author = User.current