From 6d8e4670f13109145b9b305243ee18a6f734ee99 Mon Sep 17 00:00:00 2001 From: wandji20 Date: Mon, 14 Aug 2023 17:09:08 +0100 Subject: [PATCH] Set nonce for new and edit result table inline javascript [SCI-9057] --- app/views/result_tables/_edit.html.erb | 2 +- app/views/result_tables/_new.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/result_tables/_edit.html.erb b/app/views/result_tables/_edit.html.erb index 72abdc859..2187c4bad 100644 --- a/app/views/result_tables/_edit.html.erb +++ b/app/views/result_tables/_edit.html.erb @@ -17,7 +17,7 @@ <%= f.button t("general.save"), class: 'btn btn-primary save-result' %> - <%= javascript_include_tag 'results/result_tables/edit' %> + <%= javascript_include_tag 'results/result_tables/edit', nonce: true %> <% end %> diff --git a/app/views/result_tables/_new.html.erb b/app/views/result_tables/_new.html.erb index b00eac0ea..b3e20eb9c 100644 --- a/app/views/result_tables/_new.html.erb +++ b/app/views/result_tables/_new.html.erb @@ -16,7 +16,7 @@ <%= f.button t("result_tables.new.create"), class: 'btn btn-primary save-result' %> - <%= javascript_include_tag 'results/result_tables/new' %> + <%= javascript_include_tag 'results/result_tables/new', nonce: true %> <% end %>