@@ -21,7 +21,7 class Mailer < ActionMailer::Base | |||
|
21 | 21 | |
|
22 | 22 | def issue_add(issue) |
|
23 | 23 | # Sends to all project members |
|
24 | @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification } | |
|
24 | @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification }.compact | |
|
25 | 25 | @from = $RDM_MAIL_FROM |
|
26 | 26 | @subject = "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] #{issue.status.name} - #{issue.subject}" |
|
27 | 27 | @body['issue'] = issue |
@@ -30,7 +30,7 class Mailer < ActionMailer::Base | |||
|
30 | 30 | def issue_edit(journal) |
|
31 | 31 | # Sends to all project members |
|
32 | 32 | issue = journal.journalized |
|
33 | @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification } | |
|
33 | @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification }.compact | |
|
34 | 34 | @from = $RDM_MAIL_FROM |
|
35 | 35 | @subject = "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] #{issue.status.name} - #{issue.subject}" |
|
36 | 36 | @body['issue'] = issue |
General Comments 0
You need to be logged in to leave comments.
Login now