]> source.dussan.org Git - redmine.git/commitdiff
Added "assigned to" field in mail notifications.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 10 May 2007 17:46:16 +0000 (17:46 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 10 May 2007 17:46:16 +0000 (17:46 +0000)
Also fixed mail_handler unit test (wrong fixture filename).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@527 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/mailer/_issue.rhtml
test/unit/mail_handler_test.rb

index 877947d38c51e78a38373cf0c2c5d2f686032fd0..bf17132e66fadd4de81f418caa6e9be63db20bed 100644 (file)
@@ -1,5 +1,6 @@
 <%=l(:label_issue)%> #<%= issue.id %> - <%= issue.subject %>
 <%=l(:field_author)%>: <%= issue.author.display_name %>
+<%=l(:field_assigned_to)%>: <%= issue.assigned_to ? issue.assigned_to.name : "-" %>
 <%=l(:field_status)%>: <%= issue.status.name %>
 
 <%= issue.description %>
index 9b6800871cf0c71ec8e5a85b805554bf49088d42..8cac2d8b91c337e70ca69c64fdca79748f6148c7 100644 (file)
@@ -36,7 +36,7 @@ class MailHandlerTest < Test::Unit::TestCase
   end
   
   def test_add_note_to_issue
-    raw = read_fixture("add_note_to_issue_2.txt").join
+    raw = read_fixture("add_note_to_issue.txt").join
     MailHandler.receive(raw)
 
     issue = Issue.find(2)