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

(-)a/Koha/Item.pm (-2 / +2 lines)
Lines 298-304 sub safe_to_delete { Link Here
298
298
299
    $error = "not_same_branch"
299
    $error = "not_same_branch"
300
      if defined C4::Context->userenv
300
      if defined C4::Context->userenv
301
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ) )
301
      and defined C4::Context->userenv->{number}
302
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self );
302
303
303
    # check it doesn't have a waiting reserve
304
    # check it doesn't have a waiting reserve
304
    $error = "book_reserved"
305
    $error = "book_reserved"
305
- 

Return to bug 20256