From fa444f549d6bf8d0d58ed50b6019664f332e99dd 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 Signed-off-by: Katrin Fischer --- 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 a6b7416f54..42bd3db073 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -630,15 +630,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 1abdb153ae..308d8cc60d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -961,7 +961,7 @@ -[% IF waiting_holds_barcodes %] +[% IF waiting_holds %]