mailer.rb.diff

Amedeo Amedeo, 2008-02-03 11:00

Download (909 Bytes)

View differences:

mailer.rb (working copy)
31 31
    set_language_if_valid(Setting.default_language)
32 32
    # Sends to all project members
33 33
    issue = journal.journalized
34
    @recipients     = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification }.compact
34
    # @recipients     = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification }.compact
35
    @recipients     = Workflow.find(:all, :conditions => ["old_status_id = ?", issue.status.id]).collect {|w| w.role}.collect {|r| r.members}.flatten.collect {|m| m.user.mail if m.user.mail_notification}.uniq
35 36
    @from           = Setting.mail_from
36 37
    @subject        = "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] #{issue.status.name} - #{issue.subject}"
37 38
    @body['issue']  = issue