Fixed: MailHandler does not include JournalDetail for attached files (#7966).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6312 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-07-24 09:34:23 +00:00
parent 9957883c4d
commit 49900051ea
4 changed files with 36 additions and 9 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ class MailHandler < ActionMailer::Base
def add_attachments(obj)
if email.has_attachments?
email.attachments.each do |attachment|
Attachment.create(:container => obj,
obj.attachments << Attachment.create(:container => obj,
:file => attachment,
:author => user,
:content_type => attachment.content_type)