From 53991f88b00c3090005b9f4fbc2863fa51aaf441 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 31 Jan 2024 11:45:40 -0500 Subject: [PATCH] Bug 34478: Manual fix - add op - request.tt placerequest Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 1 + reserve/placerequest.pl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 4406ac6c60..aaf02c0046 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -494,6 +494,7 @@
[% INCLUDE 'csrf-token.inc' %] + [% FOREACH biblionumber IN biblionumbers %] diff --git a/reserve/placerequest.pl b/reserve/placerequest.pl index a253fb5547..d2fec975dd 100755 --- a/reserve/placerequest.pl +++ b/reserve/placerequest.pl @@ -49,6 +49,7 @@ my $item_group_id = $input->param('item_group_id'); my $expirationdate = $input->param('expiration_date'); my $itemtype = $input->param('itemtype') || undef; my $non_priority = $input->param('non_priority'); +my $op = $input->param('op') || q{}; my $patron = Koha::Patrons->find( $borrowernumber ); @@ -65,7 +66,7 @@ foreach my $bibnum ( @holdable_bibs ) { my $found; -if ( $patron ) { +if ( $op eq 'cud-placerequest' && $patron ) { foreach my $biblionumber ( keys %bibinfos ) { -- 2.39.5