From 2dfbc4fee77cec9ecafe03d890f5bfbc88115809 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 20 Mar 2024 14:14:31 +0000 Subject: [PATCH] Bug 36135: (follow-up) Adjust for CSRF --- .../prog/en/modules/tools/batch_modify_holds.tt | 7 ++++--- tools/batch_modify_holds.pl | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt index 7705c36beb1..6b961764984 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt @@ -42,7 +42,7 @@

Batch modify holds

[% IF view == 'form' %] -
+
Hold search criteria: NOTE! Column patron_expiration_date is used as a main filter for expiration date field. Otherwise column expirationdate is used. @@ -106,6 +106,7 @@ [% ELSIF view == 'list' %]
+ [% INCLUDE 'csrf-token.inc' %] [% IF holds.count %]
@@ -189,7 +190,7 @@
- + Cancel
@@ -310,4 +311,4 @@ [% END %] -[% INCLUDE 'intranet-bottom.inc' %] \ No newline at end of file +[% INCLUDE 'intranet-bottom.inc' %] diff --git a/tools/batch_modify_holds.pl b/tools/batch_modify_holds.pl index ddc08e3adca..839f682ecac 100755 --- a/tools/batch_modify_holds.pl +++ b/tools/batch_modify_holds.pl @@ -124,7 +124,7 @@ elsif ( $op eq 'list' ) { ); } -if ( $op eq 'modify' ) { +if ( $op eq 'cud-modify' ) { my $new_expiration_date = $input->param('new_expiration_date'); my $new_pickup_loc = $input->param('new_pickup_loc'); -- 2.30.2