@@ -472,7 +472,7 class Project < ActiveRecord::Base | |||
|
472 | 472 | # Returns the users that should be notified on project events |
|
473 | 473 | def notified_users |
|
474 | 474 | # TODO: User part should be extracted to User#notify_about? |
|
475 |
members.select {|m| m.mail_notification? || m. |
|
|
475 | members.select {|m| m.principal.present? && (m.mail_notification? || m.principal.mail_notification == 'all')}.collect {|m| m.principal} | |
|
476 | 476 | end |
|
477 | 477 | |
|
478 | 478 | # Returns an array of all custom fields enabled for project issues |
General Comments 0
You need to be logged in to leave comments.
Login now