From 325b3e7c1087d920d2400f19e9cdf9770c0d75f8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 15 Feb 2024 17:07:01 +0000 Subject: [PATCH] Bug 34478: Convert authorised value delete link to POST form Signed-off-by: Jonathan Druart --- .../prog/en/modules/admin/authorised_values.tt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index 3ca17300ea..11ccab61a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -297,8 +297,16 @@ No limitation [% END # /IF loo.branches.size > 0 %] - Edit - Delete + + Edit +
+ [% INCLUDE 'csrf-token.inc' %] + + + + +
+ [% END # /FOREACH loop %] @@ -376,7 +384,7 @@ $("#branches option:first").attr("selected", "selected"); } - $("a.delete").click(function(){ + $(".delete").click(function(){ return confirm(_("Are you sure you want to delete this authorized value?")); }); $('#category_search').change(function() {