@@ -, +, @@ $ kshell k$ prove t/db_dependent/api/v1/holds.t too. --- Koha/REST/V1/Holds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/REST/V1/Holds.pm +++ a/Koha/REST/V1/Holds.pm @@ -169,7 +169,7 @@ sub add { ? C4::Reserves::CanItemBeReserved( $patron_id, $item_id ) : C4::Reserves::CanBookBeReserved( $patron_id, $biblio_id ); - if ( $patron->holds->count + 1 > C4::Context->preference('maxreserves') ) { + if ( C4::Context->preference('maxreserves') && $patron->holds->count + 1 > C4::Context->preference('maxreserves') ) { $can_place_hold->{status} = 'tooManyReserves'; } --