]> source.dussan.org Git - redmine.git/commitdiff
Merged r3698 from trunk.
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 29 Apr 2010 23:30:21 +0000 (23:30 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 29 Apr 2010 23:30:21 +0000 (23:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3699 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 6c491bf23825ab0761b3e7fb65e93cacd58d63d6..25a07107c14022f7eb8c604763d62d8940bfe618 100644 (file)
@@ -80,7 +80,7 @@ class Issue < ActiveRecord::Base
   end
   
   def copy_from(arg)
-    issue = arg.is_a?(Issue) ? arg : Issue.find(arg)
+    issue = arg.is_a?(Issue) ? arg : Issue.visible.find(arg)
     self.attributes = issue.attributes.dup.except("id", "created_on", "updated_on")
     self.custom_values = issue.custom_values.collect {|v| v.clone}
     self.status = issue.status