Project

General

Profile

Feature #25445 ยป unify_mail.patch

Greg T, 2017-03-27 16:10

View differences:

app/models/mailer.rb (working copy)
93 93
    issue = journal.journalized.reload
94 94
    to = journal.notified_users
95 95
    cc = journal.notified_watchers - to
96
    users3 = []
96 97
    journal.each_notification(to + cc) do |users|
97 98
      issue.each_notification(users) do |users2|
98
        Mailer.issue_edit(journal, to & users2, cc & users2).deliver
99
        users3 |= users2
99 100
      end
100 101
    end
102
    Mailer.issue_edit(journal, to & users3, cc & users3).deliver if users3.any?
101 103
  end
102 104

  
103 105
  def reminder(user, issues, days)
    (1-1/1)