]> source.dussan.org Git - redmine.git/commitdiff
Fixes reply attachments handling.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 22 Jun 2008 12:37:24 +0000 (12:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 22 Jun 2008 12:37:24 +0000 (12:37 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1570 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mail_handler.rb

index 03e48e170b780d77c324d36c8376a1e0dcf186e1..7b85077e183f1161034233b7bc446c3bc13bab79 100644 (file)
@@ -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')