@@ -524,7 +524,7 class Project < ActiveRecord::Base | |||||
524 | # Returns the users that should be notified on project events |
|
524 | # Returns the users that should be notified on project events | |
525 | def notified_users |
|
525 | def notified_users | |
526 | # TODO: User part should be extracted to User#notify_about? |
|
526 | # TODO: User part should be extracted to User#notify_about? | |
527 | members.select {|m| m.principal.present? && (m.mail_notification? || m.principal.mail_notification == 'all')}.collect {|m| m.principal} |
|
527 | members.preload(:principal).select {|m| m.principal.present? && (m.mail_notification? || m.principal.mail_notification == 'all')}.collect {|m| m.principal} | |
528 | end |
|
528 | end | |
529 |
|
529 | |||
530 | # Returns a scope of all custom fields enabled for project issues |
|
530 | # Returns a scope of all custom fields enabled for project issues |
General Comments 0
You need to be logged in to leave comments.
Login now