From af66d6e7134a1d5ed463249b08fa3a2406a75697 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 --- 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 bdab0b9afa..ace0100156 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -597,15 +597,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 c1c15767d4..353215754f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -905,7 +905,7 @@ -[% IF waiting_holds_barcodes %] +[% IF waiting_holds %]