From 6d5569a46d0f7874517ee78467ab7969a73f3202 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 29 Mar 2014 15:27:42 +0000 Subject: [PATCH] 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 --- app/models/mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index bfc39c0b3..1ded8d6ea 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -80,7 +80,7 @@ class Mailer < ActionMailer::Base def self.deliver_issue_edit(journal) issue = journal.journalized.reload to = journal.notified_users - cc = journal.notified_watchers + cc = journal.notified_watchers - to journal.each_notification(to + cc) do |users| issue.each_notification(users) do |users2| Mailer.issue_edit(journal, to & users2, cc & users2).deliver