@@ -31,8 +31,8 class Mailer < ActionMailer::Base | |||
|
31 | 31 | # Sends to all project members |
|
32 | 32 | @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification }.compact |
|
33 | 33 | # Sends to author and assignee (even if they turned off mail notification) |
|
34 | @recipients << issue.author.mail | |
|
35 | @recipients << issue.assigned_to.mail | |
|
34 | @recipients << issue.author.mail if issue.author | |
|
35 | @recipients << issue.assigned_to.mail if issue.assigned_to | |
|
36 | 36 | @recipients.compact! |
|
37 | 37 | @recipients.uniq! |
|
38 | 38 | @from = Setting.mail_from |
@@ -46,8 +46,8 class Mailer < ActionMailer::Base | |||
|
46 | 46 | issue = journal.journalized |
|
47 | 47 | @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification } |
|
48 | 48 | # Sends to author and assignee (even if they turned off mail notification) |
|
49 | @recipients << issue.author.mail | |
|
50 | @recipients << issue.assigned_to.mail | |
|
49 | @recipients << issue.author.mail if issue.author | |
|
50 | @recipients << issue.assigned_to.mail if issue.assigned_to | |
|
51 | 51 | @recipients.compact! |
|
52 | 52 | @recipients.uniq! |
|
53 | 53 | # Watchers in cc |
General Comments 0
You need to be logged in to leave comments.
Login now