1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

Fix groups added to watchers are not shown as links (#37958).

Patch by Mizuki ISHIKAWA.



git-svn-id: https://svn.redmine.org/redmine/trunk@21967 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2022-11-28 22:59:05 +00:00
parent 258d2fe87f
commit c0f60e5feb
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -2726,7 +2726,7 @@ class IssuesControllerTest < Redmine::ControllerTest
end
assert_select "li.user-10" do
assert_select 'img.gravatar[title=?]', 'A Team'
assert_select 'a[href="/users/10"]', false
assert_select 'a[href="/groups/10"]'
assert_select 'a[class*=delete]'
end
end