summaryrefslogtreecommitdiffstats
path: root/lib/plugins/acts_as_watchable
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-09-01 14:08:45 +0000
committerGo MAEDA <maeda@farend.jp>2020-09-01 14:08:45 +0000
commitb0739821e81f439d6bc65b15245da68b9545192d (patch)
tree66e6d236c6ed138dc4e8f19e2a7e8903ea469ba2 /lib/plugins/acts_as_watchable
parent2ee6a7cead15d589a56b95ce0f6f1d6dabb45759 (diff)
downloadredmine-b0739821e81f439d6bc65b15245da68b9545192d.tar.gz
redmine-b0739821e81f439d6bc65b15245da68b9545192d.zip
Locked users in a group receive notifications when the group is added as a watcher (#4511, #33935).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19998 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins/acts_as_watchable')
-rw-r--r--lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb b/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
index 6b16e18a5..bb71a2884 100644
--- a/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
+++ b/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
@@ -73,7 +73,7 @@ module Redmine
def notified_watchers
notified = watcher_users.active.to_a
- notified = notified.map {|n| n.is_a?(Group) ? n.users : n}.flatten
+ notified = notified.map {|n| n.is_a?(Group) ? n.users.active : n}.flatten
notified.uniq!
notified.reject! {|user| user.mail.blank? || user.mail_notification == 'none'}
if respond_to?(:visible?)