From 47d6725a722728c5d0ae38953a0d8c74d99d3d9e Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 2 Feb 2024 03:08:51 +0000 Subject: [PATCH] Bug 34478: Manual fix - Convert Z39.50 delete from GET to POST Signed-off-by: Jonathan Druart --- .../prog/en/modules/admin/z3950servers.tt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt index ab0c9b1d22..518161b51d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt @@ -245,7 +245,14 @@ @@ -326,8 +333,10 @@ })); $(".delete").on("click",function(e){ var servername = $(this).data("servername"); + let formid = $(this).data("formid"); if( confirm( _("Are you sure you want to delete server %s?").format(servername) ) ) { - return true; + $('#'+formid).submit(); + return false; } else { e.preventDefault(); } -- 2.39.5