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

(-)a/C4/ILSDI/Services.pm (-3 / +1 lines)
Lines 740-748 sub HoldItem { Link Here
740
    return { code => 'RecordNotFound' } if $$item{biblionumber} ne $biblio->biblionumber;
740
    return { code => 'RecordNotFound' } if $$item{biblionumber} ne $biblio->biblionumber;
741
741
742
    # Check for item disponibility
742
    # Check for item disponibility
743
    my $canitembereserved = C4::Reserves::CanItemBeReserved( $borrowernumber, $itemnumber )->{status};
743
    # CanItemBeReserved codes are passed back too.
744
    my $canbookbereserved = C4::Reserves::CanBookBeReserved( $borrowernumber, $biblionumber )->{status};
744
    my $canbookbereserved = C4::Reserves::CanBookBeReserved( $borrowernumber, $biblionumber )->{status};
745
    return { code => $canitembereserved } unless $canitembereserved eq 'OK';
746
    return { code => $canbookbereserved } unless $canbookbereserved eq 'OK';
745
    return { code => $canbookbereserved } unless $canbookbereserved eq 'OK';
747
746
748
    # Pickup branch management
747
    # Pickup branch management
749
- 

Return to bug 19945