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

(-)a/C4/Circulation.pm (-2 / +4 lines)
Lines 3269-3277 sub CanBookBeRenewed { Link Here
3269
    }
3269
    }
3270
3270
3271
    # There is an item level hold on this item, no other item can fill the hold
3271
    # There is an item level hold on this item, no other item can fill the hold
3272
    # The flag skip_future_holds may be removed in the future. See bug 40435.
3272
    # The flag skip_future_holds is set when preference FutureHoldsBlockRenewals is not set (default).
3273
    # (Historically, Koha does not block renewals for future holds. Could be argued.)
3274
    my $skip = C4::Context->preference('FutureHoldsBlockRenewals') ? 0 : 1;
3273
    return ( 0, "on_reserve" )
3275
    return ( 0, "on_reserve" )
3274
        if ( $item->current_holds( { skip_future_holds => 1 } )->search( { non_priority => 0 } )->count );
3276
        if ( $item->current_holds( { skip_future_holds => $skip } )->search( { non_priority => 0 } )->count );
3275
3277
3276
    my ( $status, $matched_reserve, $possible_holds ) = C4::Reserves::CheckReserves($item);
3278
    my ( $status, $matched_reserve, $possible_holds ) = C4::Reserves::CheckReserves($item);
3277
    my @fillable_holds = ();
3279
    my @fillable_holds = ();
(-)a/Koha/Item.pm (-2 / +4 lines)
Lines 1181-1187 sub article_request_type { Link Here
1181
    my $holds = $item->current_holds
1181
    my $holds = $item->current_holds
1182
1182
1183
Return the holds placed on this item.
1183
Return the holds placed on this item.
1184
Respects the lookahead days in ConfirmFutureHolds pref.
1184
Respects the lookahead days in preference ConfirmFutureHolds when the
1185
param skip_future_holds is not set.
1186
Note that the preference FutureHoldsBlockRenewals controls that setting
1187
for renewals; see also C4::Circulation::CanBookBeRenewed.
1185
1188
1186
=cut
1189
=cut
1187
1190
1188
- 

Return to bug 40435