Change link in activities for protocols [SCI-11240]

This commit is contained in:
Andrej 2024-11-05 10:56:08 +01:00
parent 4fb54535ad
commit d0877c7d15
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ module GlobalActivitiesHelper
end
when Protocol
if obj.my_module.nil?
path = protocols_path(team: obj.team.id)
path = protocol_path(obj)
elsif obj.my_module.navigable?
path = protocols_my_module_path(obj.my_module)
else

View file

@ -9,7 +9,7 @@
<% if subject.in_repository? %>
<div class="ga-breadcrumb">
<span class="sn-icon sn-icon-protocols-templates"></span>
<%= route_to_other_team protocols_path(team: subject.team),
<%= route_to_other_team protocol_path(subject),
team,
subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
title: subject.name %>