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

(-)a/Koha/Items.pm (-2 / +6 lines)
Lines 107-113 sub filter_by_for_hold { Link Here
107
        withdrawn  => 0,
107
        withdrawn  => 0,
108
        notforloan => { '<=' => 0 },    # items with negative or zero notforloan value are holdable
108
        notforloan => { '<=' => 0 },    # items with negative or zero notforloan value are holdable
109
        ( C4::Context->preference('AllowHoldsOnDamagedItems') ? () : ( damaged => 0 ) ),
109
        ( C4::Context->preference('AllowHoldsOnDamagedItems') ? () : ( damaged => 0 ) ),
110
        ( C4::Context->only_my_library()                      ? ( homebranch => C4::Context::mybranch() ) : () ),
110
        (
111
            C4::Context->only_my_library()
112
                && !C4::Context->preference('canreservefromotherbranches')
113
            ? ( homebranch => C4::Context::mybranch() )
114
            : ()
115
        ),
111
    };
116
    };
112
117
113
    if ( C4::Context->preference("item-level_itypes") ) {
118
    if ( C4::Context->preference("item-level_itypes") ) {
114
- 

Return to bug 36502