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

(-)a/Koha/Items.pm (+1 lines)
Lines 76-81 sub filter_by_for_hold { Link Here
76
        withdrawn  => 0,
76
        withdrawn  => 0,
77
        notforloan => { '<=' => 0 },    # items with negative or zero notforloan value are holdable
77
        notforloan => { '<=' => 0 },    # items with negative or zero notforloan value are holdable
78
        ( C4::Context->preference('AllowHoldsOnDamagedItems')? (): ( damaged => 0 ) ),
78
        ( C4::Context->preference('AllowHoldsOnDamagedItems')? (): ( damaged => 0 ) ),
79
        ( C4::Context->only_my_library() ? ( homebranch => C4::Context::mybranch() ) : () ),
79
    };
80
    };
80
81
81
    if ( C4::Context->preference("item-level_itypes") ) {
82
    if ( C4::Context->preference("item-level_itypes") ) {
(-)a/circ/pendingreserves.pl (-3 / +2 lines)
Lines 181-188 if ( !C4::Context->preference('AllowHoldsOnDamagedItems') ){ Link Here
181
    $where{'itembib.damaged'} = 0;
181
    $where{'itembib.damaged'} = 0;
182
}
182
}
183
183
184
if ( C4::Context->preference('IndependentBranches') ){
184
if ( C4::Context->only_my_library() ){
185
    $where{'itembib.holdingbranch'} = C4::Context->userenv->{'branch'};
185
    $where{'me.branchcode'} = C4::Context->userenv->{'branch'};
186
}
186
}
187
187
188
# get all distinct unfulfilled reserves
188
# get all distinct unfulfilled reserves
189
- 

Return to bug 31105