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

(-)a/C4/Items.pm (-2 / +1 lines)
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
- 

Return to bug 20256