From dd2856ae8d919f1d7f7ca4eda8a7d683b082c015 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 18 Jun 2021 04:03:36 +0000 Subject: [PATCH] Bug 15516: Fix hold groups for multi items for one bib --- reserve/placerequest.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reserve/placerequest.pl b/reserve/placerequest.pl index f98247894b..b5e8274726 100755 --- a/reserve/placerequest.pl +++ b/reserve/placerequest.pl @@ -49,7 +49,8 @@ my $checkitem = $input->param('checkitem'); my $expirationdate = $input->param('expiration_date'); my $itemtype = $input->param('itemtype') || undef; my $non_priority = $input->param('non_priority'); -my $hold_group = $input->param('hold_group') || undef; +my $hold_group_param = $input->param('hold_group') || undef; +my $hold_group; my $borrower = Koha::Patrons->find( $borrowernumber ); $borrower = $borrower->unblessed if $borrower; @@ -74,7 +75,7 @@ my $found; if ( $type eq 'str8' && $borrower ) { - if ( @biblionumbers > 1 && $hold_group ) { + if ( $hold_group_param ) { $hold_group = Koha::HoldGroup->new->store; } -- 2.11.0