From d0877c7d1591164922e2a59f17fb766c35c028f7 Mon Sep 17 00:00:00 2001 From: Andrej Date: Tue, 5 Nov 2024 10:56:08 +0100 Subject: [PATCH] Change link in activities for protocols [SCI-11240] --- app/helpers/global_activities_helper.rb | 2 +- app/views/global_activities/references/_protocol.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/global_activities_helper.rb b/app/helpers/global_activities_helper.rb index af945712a..4d09aaee1 100644 --- a/app/helpers/global_activities_helper.rb +++ b/app/helpers/global_activities_helper.rb @@ -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 diff --git a/app/views/global_activities/references/_protocol.html.erb b/app/views/global_activities/references/_protocol.html.erb index 1ff72f58b..930a249cf 100644 --- a/app/views/global_activities/references/_protocol.html.erb +++ b/app/views/global_activities/references/_protocol.html.erb @@ -9,7 +9,7 @@ <% if subject.in_repository? %>
- <%= 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 %>