View | Details | Raw Unified | Return to bug 15324
Collapse All | Expand All

(-)a/circ/circulation.pl (-2 / +3 lines)
Lines 457-465 if ($borrowernumber) { Link Here
457
# show all reserves of this borrower, and the position of the reservation ....
457
# show all reserves of this borrower, and the position of the reservation ....
458
if ($borrowernumber) {
458
if ($borrowernumber) {
459
    my $holds = Koha::Holds->search( { borrowernumber => $borrowernumber } );
459
    my $holds = Koha::Holds->search( { borrowernumber => $borrowernumber } );
460
    my $waitingHolds = $holds->waiting();
461
    $waitingHolds = undef if (! $waitingHolds->count() );
460
    $template->param(
462
    $template->param(
461
        holds_count  => $holds->count(),
463
        holds_count  => $holds->count(),
462
        WaitingHolds => scalar $holds->waiting(),
464
        WaitingHolds => $waitingHolds,
463
    );
465
    );
464
466
465
    $template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' );
467
    $template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' );
466
- 

Return to bug 15324