From b9ad5de29d67a320bb31c8c816f5741f64d1b012 Mon Sep 17 00:00:00 2001 From: Shi Yao Wang Date: Fri, 3 Nov 2023 13:13:56 -0400 Subject: [PATCH] Bug 34668: pass whole waiting_holds rs Signed-off-by: Kelly Signed-off-by: Lucas Gass --- circ/circulation.pl | 11 ++--------- .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 8 ++++---- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index dc6484cc0b..f13b5247b0 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -611,15 +611,8 @@ if ( $patron ) { $template->param( patron_messages => $patron_messages ); if ( C4::Context->preference("WaitingNotifyAtCheckout") ) { - - #Check for waiting holds - my $waiting_holds = $patron->holds->search( { found => 'W', branchcode => $branch } ); - my @waiting_holds_barcodes = (); - while ( my $hold = $waiting_holds->next ) { - push( @waiting_holds_barcodes, $hold->item->barcode ); - } - - $template->param( waiting_holds_barcodes => \@waiting_holds_barcodes ); + my $waiting_holds = $patron->holds->search( { found => 'W', branchcode => $branch } ); + $template->param( waiting_holds => $waiting_holds ); } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index faf596c294..2a271ea4c0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -950,7 +950,7 @@ -[% IF waiting_holds_barcodes %] +[% IF waiting_holds %]