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

(-)a/C4/Reserves.pm (-3 / +2 lines)
Lines 1205-1212 sub IsAvailableForItemLevelRequest { Link Here
1205
        $item->withdrawn        ||
1205
        $item->withdrawn        ||
1206
        ($item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems'));
1206
        ($item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems'));
1207
1207
1208
    my $on_shelf_holds = Koha::IssuingRules->get_onshelfholds_policy( { item => $item, patron => $patron } );
1209
1210
    if ($pickup_branchcode) {
1208
    if ($pickup_branchcode) {
1211
        my $destination = Koha::Libraries->find($pickup_branchcode);
1209
        my $destination = Koha::Libraries->find($pickup_branchcode);
1212
        return 0 unless $destination;
1210
        return 0 unless $destination;
Lines 1214-1219 sub IsAvailableForItemLevelRequest { Link Here
1214
        return 0 unless $item->can_be_transferred( { to => $destination } );
1212
        return 0 unless $item->can_be_transferred( { to => $destination } );
1215
    }
1213
    }
1216
1214
1215
    my $on_shelf_holds = Koha::IssuingRules->get_onshelfholds_policy( { item => $item, patron => $patron } );
1216
1217
    if ( $on_shelf_holds == 1 ) {
1217
    if ( $on_shelf_holds == 1 ) {
1218
        return 1;
1218
        return 1;
1219
    } elsif ( $on_shelf_holds == 2 ) {
1219
    } elsif ( $on_shelf_holds == 2 ) {
1220
- 

Return to bug 24185