diff options
author | Go MAEDA <maeda@farend.jp> | 2020-09-01 14:08:45 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-09-01 14:08:45 +0000 |
commit | b0739821e81f439d6bc65b15245da68b9545192d (patch) | |
tree | 66e6d236c6ed138dc4e8f19e2a7e8903ea469ba2 /lib/plugins/acts_as_watchable | |
parent | 2ee6a7cead15d589a56b95ce0f6f1d6dabb45759 (diff) | |
download | redmine-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.rb | 2 |
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?) |