From 38b94cf964a2826b1afab4be3ef78c11dfdafa92 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 20 Feb 2024 19:19:24 +0000 Subject: [PATCH] Bug 34478: Item removal deletion should be POSTed form This patch updates the "Remove" button from items which are in a rotating collection (in the "Manage items" stage). A GET link is converted to a posted form. Unrelated: The JavaScript has also been modified so that it asks for confirmation. Signed-off-by: Jonathan Druart --- .../prog/en/modules/rotating_collections/addItems.tt | 11 ++++++++++- .../intranet-tmpl/prog/js/rotating-collections.js | 6 +++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt index 593c08ec0c..8f0b491d5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt @@ -131,7 +131,16 @@ [% INCLUDE 'biblio-title.inc' biblio=collectionItemsLoo link = 1 %] [% collectionItemsLoo.itemcallnumber | html %] [% collectionItemsLoo.barcode | html %] - Remove + +
+ [% INCLUDE 'csrf-token.inc' %] + + + + +