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

(-)a/C4/ILSDI/Utility.pm (-1 / +1 lines)
Lines 98-104 sub CanBookBeReserved { Link Here
98
        $out = undef;
98
        $out = undef;
99
    }
99
    }
100
    my @reserves = GetReservesFromBorrowernumber( $borrower->{'borrowernumber'} );
100
    my @reserves = GetReservesFromBorrowernumber( $borrower->{'borrowernumber'} );
101
    if ( scalar(@reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) {
101
    if ( $MAXIMUM_NUMBER_OF_RESERVES && scalar(@reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) {
102
        $out = undef;
102
        $out = undef;
103
    }
103
    }
104
    foreach my $res (@reserves) {
104
    foreach my $res (@reserves) {
(-)a/opac/opac-reserve.pl (-2 / +1 lines)
Lines 264-270 if ( $borr->{debarred} && ($borr->{debarred} eq 1) ) { Link Here
264
264
265
my @reserves = GetReservesFromBorrowernumber( $borrowernumber );
265
my @reserves = GetReservesFromBorrowernumber( $borrowernumber );
266
$template->param( RESERVES => \@reserves );
266
$template->param( RESERVES => \@reserves );
267
if ( scalar(@reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) {
267
if ( $MAXIMUM_NUMBER_OF_RESERVES && scalar(@reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) {
268
    $template->param( message => 1 );
268
    $template->param( message => 1 );
269
    $noreserves = 1;
269
    $noreserves = 1;
270
    $template->param( too_many_reserves => scalar(@reserves));
270
    $template->param( too_many_reserves => scalar(@reserves));
271
- 

Return to bug 3785