From b67bea81b829eec56c8fa9c8eda84b65e24a4beb Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 12 Oct 2022 11:01:16 +0200 Subject: [PATCH] Remove legacy protocol links [SCI-7323] --- app/services/dashboard/recent_work_service.rb | 2 +- .../protocols/index/_protocol_preview_modal_footer.html.erb | 2 +- app/views/search/results/partials/_step_text.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/dashboard/recent_work_service.rb b/app/services/dashboard/recent_work_service.rb index 47af41568..54e959ba6 100644 --- a/app/services/dashboard/recent_work_service.rb +++ b/app/services/dashboard/recent_work_service.rb @@ -241,7 +241,7 @@ module Dashboard when 'Project' project_path(object_id) when 'Protocol' - edit_protocol_path(object_id) + protocol_path(object_id) when 'RepositoryBase' repository_path(object_id) when 'Report' diff --git a/app/views/protocols/index/_protocol_preview_modal_footer.html.erb b/app/views/protocols/index/_protocol_preview_modal_footer.html.erb index 36fcabba2..d9878e0ad 100644 --- a/app/views/protocols/index/_protocol_preview_modal_footer.html.erb +++ b/app/views/protocols/index/_protocol_preview_modal_footer.html.erb @@ -1,6 +1,6 @@ <% if can_manage_protocol_in_repository?(@protocol) %> - <%= route_to_other_team_btn edit_protocol_path(protocol), + <%= route_to_other_team_btn protocol_path(protocol), protocol.team, t('general.edit') %> <% end %> diff --git a/app/views/search/results/partials/_step_text.html.erb b/app/views/search/results/partials/_step_text.html.erb index 0a6bef2ab..c425968f8 100644 --- a/app/views/search/results/partials/_step_text.html.erb +++ b/app/views/search/results/partials/_step_text.html.erb @@ -13,7 +13,7 @@ text %> <% end %> <% elsif can_manage_protocol_in_repository?(step.protocol) %> - <%= route_to_other_team edit_protocol_path(step.protocol), + <%= route_to_other_team protocol_path(step.protocol), step.protocol.team, text %> <% else %>