|
Lines 2213-2222
sub DelItemCheck {
Link Here
|
| 2213 |
if ($onloan){ |
2213 |
if ($onloan){ |
| 2214 |
$error = "book_on_loan" |
2214 |
$error = "book_on_loan" |
| 2215 |
} |
2215 |
} |
| 2216 |
elsif ( !(C4::Context->userenv->{flags} & 1) and |
2216 |
elsif ( !( C4::Context->userenv->{flags} & 1 ) |
| 2217 |
C4::Context->preference("IndependantBranches") and |
2217 |
and C4::Context->preference("IndependantBranches") |
| 2218 |
(C4::Context->userenv->{branch} ne |
2218 |
and ( C4::Context->userenv->{branch} ne $item->{'homebranch'} ) ) |
| 2219 |
$item->{C4::Context->preference("HomeOrHoldingBranch")||'homebranch'}) ) |
|
|
| 2220 |
{ |
2219 |
{ |
| 2221 |
$error = "not_same_branch"; |
2220 |
$error = "not_same_branch"; |
| 2222 |
} |
2221 |
} |
| 2223 |
- |
|
|