Remove users from cc if they are already notified (#16415).
git-svn-id: http://svn.redmine.org/redmine/trunk@13029 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7567c3d8b2
commit
6d5569a46d
|
@ -80,7 +80,7 @@ class Mailer < ActionMailer::Base
|
||||||
def self.deliver_issue_edit(journal)
|
def self.deliver_issue_edit(journal)
|
||||||
issue = journal.journalized.reload
|
issue = journal.journalized.reload
|
||||||
to = journal.notified_users
|
to = journal.notified_users
|
||||||
cc = journal.notified_watchers
|
cc = journal.notified_watchers - to
|
||||||
journal.each_notification(to + cc) do |users|
|
journal.each_notification(to + cc) do |users|
|
||||||
issue.each_notification(users) do |users2|
|
issue.each_notification(users) do |users2|
|
||||||
Mailer.issue_edit(journal, to & users2, cc & users2).deliver
|
Mailer.issue_edit(journal, to & users2, cc & users2).deliver
|
||||||
|
|
Loading…
Reference in New Issue