Fixed: Email notifications are sent to watchers even if 'No events' setting is chosen (#7763).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5004 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-03-04 14:43:53 +00:00
parent 36009de154
commit 8fb446e87f
2 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ module Redmine
# Returns an array of watchers' email addresses
def watcher_recipients
notified = watcher_users.active
notified.reject! {|user| user.mail_notification == 'none'}
if respond_to?(:visible?)
notified.reject! {|user| !visible?(user)}
end