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

(-)a/C4/Reserves.pm (-3 / +2 lines)
Lines 831-838 sub CheckReserves { Link Here
831
    # if item is not for loan it cannot be reserved either.....
831
    # if item is not for loan it cannot be reserved either.....
832
    # except where items.notforloan < 0 :  This indicates the item is holdable.
832
    # except where items.notforloan < 0 :  This indicates the item is holdable.
833
833
834
    my @SkipHoldTrapOnNotForLoanValue = split( '|', C4::Context->preference('SkipHoldTrapOnNotForLoanValue') );
834
    my @SkipHoldTrapOnNotForLoanValue = split( '\|', C4::Context->preference('SkipHoldTrapOnNotForLoanValue') );
835
    return if @SkipHoldTrapOnNotForLoanValue && grep( $notforloan_per_item, @SkipHoldTrapOnNotForLoanValue );
835
    return if grep { $_ eq $notforloan_per_item } @SkipHoldTrapOnNotForLoanValue;
836
836
837
    my $dont_trap = C4::Context->preference('TrapHoldsOnOrder') ? ($notforloan_per_item > 0) : ($notforloan_per_item && 1 );
837
    my $dont_trap = C4::Context->preference('TrapHoldsOnOrder') ? ($notforloan_per_item > 0) : ($notforloan_per_item && 1 );
838
    return if $dont_trap or $notforloan_per_itemtype;
838
    return if $dont_trap or $notforloan_per_itemtype;
839
- 

Return to bug 27729