From d78a92cf51d994304371675d3ca6f765b67418de Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 18 Apr 2024 09:43:19 +0000 Subject: [PATCH] Bug 36639: Fix delete on authorities detail Test plan: Verify that you can delete an authority from detail page again. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc | 3 +-- .../intranet-tmpl/prog/en/modules/authorities/detail.tt | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc index 9b2ca85c9b..78c5a982c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc @@ -49,8 +49,7 @@ $(document).ready(function () { }); $("#delAuth").click(function(){ - confirm_deletion(); - return false; + $('.form_delete').submit(); }); $("#z3950_new").click(function(e){ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt index ab478ac6e1..bd90747952 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt @@ -48,6 +48,11 @@ [% INCLUDE 'messages.inc' %] [% INCLUDE 'authorities-toolbar.inc' %] +
+ [% INCLUDE 'csrf-token.inc' %] + + +
[% IF ( displayhierarchy ) %]
-- 2.39.5