Commit f1539fda authored by jplang's avatar jplang
Browse files

Fixed: Issue status in the notify email's subject is the issue's old status,...

Fixed: Issue status in the notify email's subject is the issue's old status, should be its new status (#3194).

git-svn-id: https://svn.redmine.org/redmine/trunk@2673 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ea029344
......@@ -53,7 +53,7 @@ class Mailer < ActionMailer::Base
# issue_edit(journal) => tmail object
# Mailer.deliver_issue_edit(journal) => sends an email to issue recipients
def issue_edit(journal)
issue = journal.journalized
issue = journal.journalized.reload
redmine_headers 'Project' => issue.project.identifier,
'Issue-Id' => issue.id,
'Issue-Author' => issue.author.login
......
......@@ -696,6 +696,8 @@ class IssuesControllerTest < Test::Unit::TestCase
mail = ActionMailer::Base.deliveries.last
assert mail.body.include?("Status changed from New to Assigned")
# subject should contain the new status
assert mail.subject.include?("(#{ IssueStatus.find(2).name })")
end
def test_post_edit_with_note_only
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment