Lines 1745-1751
sub ItemSafeToDelete {
Link Here
|
1745 |
if ($item->checkout) { |
1745 |
if ($item->checkout) { |
1746 |
$status = "book_on_loan"; |
1746 |
$status = "book_on_loan"; |
1747 |
} |
1747 |
} |
1748 |
elsif ( defined C4::Context->userenv |
1748 |
elsif ( defined C4::Context->userenv and defined C4::Context->userenv->{number} |
1749 |
and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $item ) ) |
1749 |
and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $item ) ) |
1750 |
{ |
1750 |
{ |
1751 |
$status = "not_same_branch"; |
1751 |
$status = "not_same_branch"; |
1752 |
- |
|
|