From: Jean-Philippe Lang Date: Sun, 22 Jun 2008 12:37:24 +0000 (+0000) Subject: Fixes reply attachments handling. X-Git-Tag: 0.8.0-RC1~424 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=268165a013ebf6734aa377cf62ce0a4f8b894921;p=redmine.git Fixes reply attachments handling. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1570 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 03e48e170..7b85077e1 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -103,7 +103,7 @@ class MailHandler < ActionMailer::Base raise UnauthorizedAction unless user.allowed_to?(:add_issue_notes, issue.project) || user.allowed_to?(:edit_issues, issue.project) # add the note journal = issue.init_journal(user, email.plain_text_body.chomp) - add_attachments(journal) + add_attachments(issue) issue.save! logger.info "MailHandler: issue ##{issue.id} updated by #{user}" if logger && logger.info Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated')