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

(-)a/Koha/Item.pm (-2 / +2 lines)
Lines 227-233 sub safe_to_delete { Link Here
227
227
228
    return "not_same_branch"
228
    return "not_same_branch"
229
      if defined C4::Context->userenv
229
      if defined C4::Context->userenv
230
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ) )
230
      and defined C4::Context->userenv->{number}
231
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self );
231
232
232
    # check it doesn't have a waiting reserve
233
    # check it doesn't have a waiting reserve
233
    return "book_reserved"
234
    return "book_reserved"
234
- 

Return to bug 20256