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

(-)a/C4/Items.pm (-2 / +1 lines)
Lines 1730-1736 sub ItemSafeToDelete { Link Here
1730
    if ($item->checkout) {
1730
    if ($item->checkout) {
1731
        $status = "book_on_loan";
1731
        $status = "book_on_loan";
1732
    }
1732
    }
1733
    elsif ( defined C4::Context->userenv
1733
    elsif ( defined C4::Context->userenv and defined C4::Context->userenv->{number}
1734
         and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $item ) )
1734
         and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $item ) )
1735
    {
1735
    {
1736
        $status = "not_same_branch";
1736
        $status = "not_same_branch";
1737
- 

Return to bug 20256