diff --git a/C4/Items.pm b/C4/Items.pm index 8781c7d846..9bbc60789a 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -2103,7 +2103,7 @@ sub DelItemCheck { if ($onloan) { $error = "book_on_loan"; } - elsif ( C4::Context->userenv->{flags} % 2 != 1 and + elsif ( C4::Context->userenv->{flags} & 1 and C4::Context->preference("IndependantBranches") and (C4::Context->userenv->{branch} ne $item->{C4::Context->preference("HomeOrHoldingBranch")||'homebranch'}) )