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