From e3e4a94817b430429a9951fcecd55e32a2dfde07 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 Content-Type: text/plain; charset=utf-8 Test plan: Verify that you can delete an authority from detail page again. Signed-off-by: Marcel de Rooy --- 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.30.2