Small fix in Mailer.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@701 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-09-04 16:58:30 +00:00
parent 6260892949
commit f16ab838d8
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Mailer < ActionMailer::Base
set_language_if_valid(Setting.default_language) set_language_if_valid(Setting.default_language)
# Sends to all project members # Sends to all project members
issue = journal.journalized issue = journal.journalized
@recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification } @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification }.compact
# Sends to author and assignee (even if they turned off mail notification) # Sends to author and assignee (even if they turned off mail notification)
@recipients << issue.author.mail if issue.author @recipients << issue.author.mail if issue.author
@recipients << issue.assigned_to.mail if issue.assigned_to @recipients << issue.assigned_to.mail if issue.assigned_to