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

(-)a/C4/Items.pm (-2 / +2 lines)
Lines 2336-2342 sub DelItemCheck { Link Here
2336
    if ($onloan){
2336
    if ($onloan){
2337
        $error = "book_on_loan" 
2337
        $error = "book_on_loan" 
2338
    }
2338
    }
2339
    elsif ( !C4::Context->IsSuperLibrarian()
2339
    elsif ( defined C4::Context->userenv
2340
        and !C4::Context->IsSuperLibrarian()
2340
        and C4::Context->preference("IndependentBranches")
2341
        and C4::Context->preference("IndependentBranches")
2341
        and ( C4::Context->userenv->{branch} ne $item->{'homebranch'} ) )
2342
        and ( C4::Context->userenv->{branch} ne $item->{'homebranch'} ) )
2342
    {
2343
    {
2343
- 

Return to bug 11084