diff --git a/circ/circulation.pl b/circ/circulation.pl index 3748d97081..5747fbf6fd 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -457,9 +457,10 @@ if ($borrowernumber) { # show all reserves of this borrower, and the position of the reservation .... if ($borrowernumber) { my $holds = Koha::Holds->search( { borrowernumber => $borrowernumber } ); + my $waiting_holds = $holds->waiting; $template->param( holds_count => $holds->count(), - WaitingHolds => scalar $holds->waiting(), + WaitingHolds => $waiting_holds, ); $template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' ); 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 9abbefdba0..4da74d89aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -797,7 +797,7 @@ No patron matched [% message %] - [% IF ( WaitingHolds ) %] + [% IF WaitingHolds.count %]

Holds waiting:

[% FOREACH w IN WaitingHolds %]