From 43a4a705bfe2b1a4bf6ca45f1d41f2571bfddf16 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 26 Jan 2024 11:27:52 -0500 Subject: [PATCH] Bug 34478: Manual fix - Switch to post, update op, add missing include - basket Signed-off-by: Jonathan Druart --- acqui/basket.pl | 2 +- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index d429170cbf..c88444c93d 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -183,7 +183,7 @@ if ( $op eq 'cud-delete_confirm' ) { } $op = 'list'; -} elsif ($op eq 'close') { +} elsif ($op eq 'cud-close') { my $confirm = $query->param('confirm') || $confirm_pref eq '2'; if ($confirm) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index c2ba978863..5f2a6627da 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -94,7 +94,13 @@ [% ELSE %]
- Close basket +
+ [% INCLUDE 'csrf-token.inc' %] + + + + +
[% END %] @@ -102,6 +108,7 @@ [% IF Koha.Preference('EDIFACT') && ediaccount %]
+ [% INCLUDE 'csrf-token.inc' %] @@ -863,7 +870,8 @@ [% IF ( confirm_close ) %]
- + + [% INCLUDE 'csrf-token.inc' %]

Are you sure you want to close basket [% basketname | html %]?

[% IF ( CAN_user_acquisition_group_manage ) %]

@@ -872,7 +880,7 @@

[% END %] - + -- 2.39.5