From 22022438acfff0ae028f27dbe32ad32be4b5e931 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/reports/guided_reports_start.tt | 2 +- .../prog/en/modules/tools/batch_modify_holds.tt | 7 ++++--- tools/batch_modify_holds.pl | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 39d4609062b..91cd768eaab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1018,7 +1018,7 @@ -
+ [% FOREACH result IN results %] [% FOREACH cells IN result.cells %] 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