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

(-)a/C4/Items.pm (-2 / +5 lines)
Lines 2103-2109 sub DelItemCheck { Link Here
2103
    if ($onloan) {
2103
    if ($onloan) {
2104
        $error = "book_on_loan";
2104
        $error = "book_on_loan";
2105
    }
2105
    }
2106
    elsif (C4::Context->preference("IndependantBranches") and (C4::Context->userenv->{branch} ne $item->{C4::Context->preference("HomeOrHoldingBranch")||'homebranch'})){
2106
    elsif ( C4::Context->userenv->{flags} % 2 != 1 and
2107
            C4::Context->preference("IndependantBranches") and
2108
           (C4::Context->userenv->{branch} ne
2109
             $item->{C4::Context->preference("HomeOrHoldingBranch")||'homebranch'}) )
2110
    {
2107
        $error = "not_same_branch";
2111
        $error = "not_same_branch";
2108
    } 
2112
    } 
2109
    else {
2113
    else {
2110
- 

Return to bug 6885