From a719ceb247642edbb4d55b8b07137b75acded162 Mon Sep 17 00:00:00 2001 From: ivanscinote <138504771+ivanscinote@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:22:18 +0100 Subject: [PATCH] Fix publish-draft button [SCI-9953] (#6957) --- app/views/protocols/index/_protocol_versions_modal.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/protocols/index/_protocol_versions_modal.html.erb b/app/views/protocols/index/_protocol_versions_modal.html.erb index 989cda1ae..d68e97298 100644 --- a/app/views/protocols/index/_protocol_versions_modal.html.erb +++ b/app/views/protocols/index/_protocol_versions_modal.html.erb @@ -33,7 +33,10 @@
<% if can_publish_protocol_in_repository?(draft) %> - <%= button_to publish_protocol_path(draft), class: "btn btn-light publish-draft", method: :post do %> + <%= button_to publish_protocol_path(draft), + params: { view: 'show' }, + class: 'btn btn-light publish-draft', + method: :post do %> <%= image_tag 'icon_small/publish.svg' %> <%= t('protocols.index.versions.publish') %> <% end %>