From c8688c4468aa781122e1d2b274f6c5b8681cc0a3 Mon Sep 17 00:00:00 2001 From: Richard Lynch Date: Wed, 18 Dec 2024 15:45:43 +0000 Subject: [PATCH] Fix deadline warning tag Need to permit the html, which is safe to do as it doesn't use any user provided values --- .../_claim_summary_international_relocation_payments.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/tasks/_claim_summary_international_relocation_payments.html.erb b/app/views/admin/tasks/_claim_summary_international_relocation_payments.html.erb index 1c165b75a0..b5b1f6ee51 100644 --- a/app/views/admin/tasks/_claim_summary_international_relocation_payments.html.erb +++ b/app/views/admin/tasks/_claim_summary_international_relocation_payments.html.erb @@ -68,7 +68,7 @@ <% summary_list.with_row do |row| %> <% row.with_key { "Decision due" } %> - <% row.with_value { "#{l(claim.decision_deadline_date)}" + "#{decision_deadline_warning(claim, {na_text: ""})}" } %> + <% row.with_value { (l(claim.decision_deadline_date) + decision_deadline_warning(claim, {na_text: ""})).html_safe } %> <% end %> <% summary_list.with_row do |row| %>