From e819c730e7bdcbbb79690679b5991c2a5aea3aac Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 28 Mar 2023 12:08:55 +0200 Subject: [PATCH] Fix print for linked protocols [SCI-8202] --- app/views/protocols/print.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/protocols/print.html.erb b/app/views/protocols/print.html.erb index 46db736ad..ef41bba67 100644 --- a/app/views/protocols/print.html.erb +++ b/app/views/protocols/print.html.erb @@ -6,7 +6,7 @@ <%= t('.header.print_info', datetime: l(DateTime.current, format: :full), full_name: current_user.full_name) %>

-

<%= @protocol.linked? ? protocol_name(@protocol.parent) : @protocol.name || @protocol.my_module.name %>

+

<%= @protocol.name || @protocol.my_module&.name %>

<% if @protocol.description.present? %> <%= custom_auto_link(@protocol.tinymce_render(:description),