Add methods to get a bug's author details from the first comment
This commit is contained in:
parent
882700c5c8
commit
f77a3c75be
6 changed files with 32 additions and 16 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue