From 1daea7aa1e085366e05962214fe8aeff13ae802a Mon Sep 17 00:00:00 2001 From: Alan Reid Date: Fri, 11 Oct 2024 09:49:07 +0100 Subject: [PATCH] Apply fix for error raised by sentry --- .../notifications/create/add_test_reports_details.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/notifications/create/add_test_reports_details.html.erb b/app/views/notifications/create/add_test_reports_details.html.erb index 88bcb99b66..9a0e05bbcb 100644 --- a/app/views/notifications/create/add_test_reports_details.html.erb +++ b/app/views/notifications/create/add_test_reports_details.html.erb @@ -66,7 +66,7 @@ <% if @test_result_form.document.present? %>

Currently selected file: - <%= link_to sanitize(@test_result_form.document.filename), @test_result_form.document, class: "govuk-link", target: "_blank", rel: "noreferrer noopener" %> + <%= link_to sanitize(@test_result_form.document.filename.to_s), @test_result_form.document, class: "govuk-link", target: "_blank", rel: "noreferrer noopener" %>

<%= f.hidden_field :document, value: @test_result_form.document.id %> <%= govuk_details(summary_text: "Replace this file") do %>