@@ -92,7 +92,7 class Issue < ActiveRecord::Base | |||
|
92 | 92 | end |
|
93 | 93 | |
|
94 | 94 | def copy_from(arg) |
|
95 | issue = arg.is_a?(Issue) ? arg : Issue.find(arg) | |
|
95 | issue = arg.is_a?(Issue) ? arg : Issue.visible.find(arg) | |
|
96 | 96 | self.attributes = issue.attributes.dup.except("id", "root_id", "parent_id", "lft", "rgt", "created_on", "updated_on") |
|
97 | 97 | self.custom_field_values = issue.custom_field_values.inject({}) {|h,v| h[v.custom_field_id] = v.value; h} |
|
98 | 98 | self.status = issue.status |
General Comments 0
You need to be logged in to leave comments.
Login now