summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-11-29 07:17:47 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-11-29 07:17:47 +0000
commit8d7a6d548520ae3a7ebd779c69322ddb229134c9 (patch)
tree1bb39ed13f820c0a1357bf92aea881c9c2df908c /app
parentbafb74badd5509aad3174f0e6d3d39ef096c2476 (diff)
downloadredmine-8d7a6d548520ae3a7ebd779c69322ddb229134c9.tar.gz
redmine-8d7a6d548520ae3a7ebd779c69322ddb229134c9.zip
Merge r21967 from trunk to 5.0-stable (#37958).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21970 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-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 fc97da105..97067378e 100644
--- a/app/helpers/watchers_helper.rb
+++ b/app/helpers/watchers_helper.rb
@@ -51,7 +51,7 @@ module WatchersHelper
lis = object.watcher_users.collect do |user|
s = ''.html_safe
s << avatar(user, :size => "16").to_s
- s << link_to_user(user, :class => 'user')
+ s << link_to_principal(user, class: user.class.to_s.downcase)
if object.respond_to?(:visible?) && user.is_a?(User) && !object.visible?(user)
s << content_tag('span', l(:notice_invalid_watcher), class: 'icon-only icon-warning', title: l(:notice_invalid_watcher))
end