Add methods to get a bug's author details from the first comment

This commit is contained in:
Tom Hughes 2011-05-08 17:59:41 +01:00
parent 882700c5c8
commit f77a3c75be
6 changed files with 32 additions and 16 deletions

View file

@ -97,7 +97,7 @@ class Notifier < ActionMailer::Base
def bug_comment_notification(bug_comment, recipient)
common_headers recipient
owner = (recipient == bug_comment.map_bug.comments.first.user);
owner = (recipient == bug_comment.map_bug.author);
subject I18n.t('notifier.map_bug_plain.subject_own', :commenter => bug_comment.author_name) if owner
subject I18n.t('notifier.map_bug_plain.subject_other', :commenter => bug_comment.author_name) unless owner