summaryrefslogtreecommitdiffstats
path: root/app/helpers/watchers_helper.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-02-06 08:19:13 +0000
committerGo MAEDA <maeda@farend.jp>2020-02-06 08:19:13 +0000
commitb995014c495b36102f36ec80618f50f3763bcd6f (patch)
tree85c230cf16c300f51f9716299ff7bc48d300c4cf /app/helpers/watchers_helper.rb
parent29433771b45319a0b50f182f0dcaf72db1275a30 (diff)
downloadredmine-b995014c495b36102f36ec80618f50f3763bcd6f.tar.gz
redmine-b995014c495b36102f36ec80618f50f3763bcd6f.zip
Allow adding user groups as watchers for issues (#4511).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19498 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/watchers_helper.rb')
-rw-r--r--app/helpers/watchers_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb
index dab5e6b76..ac732c339 100644
--- a/app/helpers/watchers_helper.rb
+++ b/app/helpers/watchers_helper.rb
@@ -47,7 +47,7 @@ module WatchersHelper
def watchers_list(object)
remove_allowed = User.current.allowed_to?("delete_#{object.class.name.underscore}_watchers".to_sym, object.project)
content = ''.html_safe
- lis = object.watcher_users.preload(:email_address).collect do |user|
+ lis = object.watcher_users.collect do |user|
s = ''.html_safe
s << avatar(user, :size => "16").to_s
s << link_to_user(user, :class => 'user')