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

(-)a/Koha/REST/V1/Holds.pm (-2 / +1 lines)
Lines 169-175 sub add { Link Here
169
            ? C4::Reserves::CanItemBeReserved( $patron, $item )
169
            ? C4::Reserves::CanItemBeReserved( $patron, $item )
170
            : C4::Reserves::CanBookBeReserved( $patron_id, $biblio_id );
170
            : C4::Reserves::CanBookBeReserved( $patron_id, $biblio_id );
171
171
172
        if ( $patron->holds->count + 1 > C4::Context->preference('maxreserves') ) {
172
        if ( C4::Context->preference('maxreserves') && $patron->holds->count + 1 > C4::Context->preference('maxreserves') ) {
173
            $can_place_hold->{status} = 'tooManyReserves';
173
            $can_place_hold->{status} = 'tooManyReserves';
174
        }
174
        }
175
175
176
- 

Return to bug 29877