]> source.dussan.org Git - redmine.git/commitdiff
Remove users from cc if they are already notified (#16415).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 29 Mar 2014 15:27:42 +0000 (15:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 29 Mar 2014 15:27:42 +0000 (15:27 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13029 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb

index bfc39c0b34f57566a98ea95811dba3cc1f27c9cd..1ded8d6ea1c101220edb1ef61c8fd4810f785438 100644 (file)
@@ -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