summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-04 14:43:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-04 14:43:53 +0000
commit8fb446e87fa5ea775c17ec19fa397077291d253a (patch)
tree8bf76fdfd4a553eaa5b1bf8b68aaa09adf774917 /vendor
parent36009de154e0d7c50d56f21e79e0f812d9d8b5e8 (diff)
downloadredmine-8fb446e87fa5ea775c17ec19fa397077291d253a.tar.gz
redmine-8fb446e87fa5ea775c17ec19fa397077291d253a.zip
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
Diffstat (limited to 'vendor')
-rw-r--r--vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb b/vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb
index e026a6dd4..61196d9a8 100644
--- a/vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb
+++ b/vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb
@@ -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