Project

General

Profile

Patch #237 ยป journal-from-mail-handler.patch

Nobuhiro IMAI, 2008-02-03 11:01

View differences:

app/models/mail_handler.rb (working copy)
34 34
    return unless user.allowed_to?(:add_issue_notes, issue.project)
35 35
    
36 36
    # add the note
37
    issue.init_journal(user, email.body.chomp)
38
    issue.save
37
    journal = issue.init_journal(user, email.body.chomp)
38
    return journal if issue.save
39 39
  end
40 40
end
    (1-1/1)