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

(-)a/C4/Reserves.pm (-1 / +4 lines)
Lines 306-311 sub CanBookBeReserved{ Link Here
306
         { status => libraryNotFound },   if given branchcode is not an existing library
306
         { status => libraryNotFound },   if given branchcode is not an existing library
307
         { status => libraryNotPickupLocation },   if given branchcode is not configured to be a pickup location
307
         { status => libraryNotPickupLocation },   if given branchcode is not configured to be a pickup location
308
         { status => cannotBeTransferred }, if branch transfer limit applies on given item and branchcode
308
         { status => cannotBeTransferred }, if branch transfer limit applies on given item and branchcode
309
         { status => patronExpired }, if patron is expired and expired patrons are not allowed to place holds
309
310
310
=cut
311
=cut
311
312
Lines 325-330 sub CanItemBeReserved { Link Here
325
    my $patron = Koha::Patrons->find( $borrowernumber );
326
    my $patron = Koha::Patrons->find( $borrowernumber );
326
    my $borrower = $patron->unblessed;
327
    my $borrower = $patron->unblessed;
327
328
329
    return { status => 'patronExpired' }
330
      if ($patron->category->effective_BlockExpiredPatronOpacActions && $patron->is_expired);
331
328
    # If an item is damaged and we don't allow holds on damaged items, we can stop right here
332
    # If an item is damaged and we don't allow holds on damaged items, we can stop right here
329
    return { status =>'damaged' }
333
    return { status =>'damaged' }
330
      if ( $item->{damaged}
334
      if ( $item->{damaged}
331
- 

Return to bug 17229