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

(-)a/C4/Items.pm (-2 / +2 lines)
Lines 2278-2284 sub DelItemCheck { Link Here
2278
    if ($onloan){
2278
    if ($onloan){
2279
        $error = "book_on_loan" 
2279
        $error = "book_on_loan" 
2280
    }
2280
    }
2281
    elsif ( !C4::Context->IsSuperLibrarian()
2281
    elsif ( defined C4::Context->userenv
2282
        and !C4::Context->IsSuperLibrarian()
2282
        and C4::Context->preference("IndependentBranches")
2283
        and C4::Context->preference("IndependentBranches")
2283
        and ( C4::Context->userenv->{branch} ne $item->{'homebranch'} ) )
2284
        and ( C4::Context->userenv->{branch} ne $item->{'homebranch'} ) )
2284
    {
2285
    {
2285
- 

Return to bug 11084