summaryrefslogtreecommitdiffstats
path: root/app/models/mail_handler.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-24 09:34:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-24 09:34:23 +0000
commit49900051ea2b404161dae568eeaec6f26bbe0c9d (patch)
tree58ac20243f4efdfd5f0baeb1e3cb0aec58b071cf /app/models/mail_handler.rb
parent9957883c4ddf53cbbee40e8c952f0a7aa0d703ca (diff)
downloadredmine-49900051ea2b404161dae568eeaec6f26bbe0c9d.tar.gz
redmine-49900051ea2b404161dae568eeaec6f26bbe0c9d.zip
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
Diffstat (limited to 'app/models/mail_handler.rb')
-rw-r--r--app/models/mail_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index 0ba8d3fd2..2cfb11698 100644
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -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)