Fixed MissingFeatureException: let user choose to copy attachments or not when bulk copying issues.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9405 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-04-14 06:21:03 +00:00
1 parent 09375960d6
commit 231282ddcb
4 files changed
+57 -4

No files matched your search

+2 -2
View File
@@ -145,8 +145,8 @@ class Issue < ActiveRecord::Base
end
# Returns an unsaved copy of the issue
def copy(attributes=nil)
copy = self.class.new.copy_from(self)
def copy(attributes=nil, copy_options={})
copy = self.class.new.copy_from(self, copy_options)
copy.attributes = attributes if attributes
copy
end