diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-24 09:34:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-24 09:34:23 +0000 |
commit | 49900051ea2b404161dae568eeaec6f26bbe0c9d (patch) | |
tree | 58ac20243f4efdfd5f0baeb1e3cb0aec58b071cf /app/models/attachment.rb | |
parent | 9957883c4ddf53cbbee40e8c952f0a7aa0d703ca (diff) | |
download | redmine-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/attachment.rb')
-rw-r--r-- | app/models/attachment.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 92eb9157a..7e3a91581 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -149,7 +149,8 @@ class Attachment < ActiveRecord::Base :file => file, :description => attachment['description'].to_s.strip, :author => User.current) - + obj.attachments << a + if a.new_record? obj.unsaved_attachments ||= [] obj.unsaved_attachments << a |