From 568fcb20dff503bae4546c92b0680bc210ebbe01 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Fri, 4 Dec 2020 12:07:25 +0100 Subject: [PATCH] Fix protocol revert from repository [SCI-5285] --- app/views/steps/attachments/_list.html.erb | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/steps/attachments/_list.html.erb b/app/views/steps/attachments/_list.html.erb index 90224529f..8b661d393 100644 --- a/app/views/steps/attachments/_list.html.erb +++ b/app/views/steps/attachments/_list.html.erb @@ -1,4 +1,4 @@ -<% assets = step.assets %> +<% assets = step.assets.joins(file_attachment: :blob) %> <% current_order = step.current_view_state(current_user).state.dig('assets', 'sort') %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 2c043ddda..bbf4827e9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2135,7 +2135,7 @@ en: thumbnail_html: " Medium" list_html: " List" delete_file_modal: - title: "Delete attachement" + title: "Delete attachment" description_1_html: "You are about to delete %{file_name}

" description_2: "Are you sure you want to continue?" confirm_button: "Delete attachment"