diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-02 10:18:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-02 10:18:53 +0000 |
commit | 3fa2f5253230114ed56ac10768f8137c10770a66 (patch) | |
tree | 0b356bc62e3b77b697cde30acf09cb6b3e92e379 /app/models | |
parent | c6e20372fd7a3711a87cd61cce6d232084955811 (diff) | |
download | redmine-3fa2f5253230114ed56ac10768f8137c10770a66.tar.gz redmine-3fa2f5253230114ed56ac10768f8137c10770a66.zip |
Merged r15848 (#23764).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15870 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/issue.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 9fb275495..d2e36e8fd 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -261,7 +261,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 @@ -1394,7 +1394,7 @@ class Issue < ActiveRecord::Base end Project.where(condition).having_trackers end - + # Returns a scope of trackers that user can assign the issue to def allowed_target_trackers(user=User.current) self.class.allowed_target_trackers(project, user, tracker_id_was) |