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

(-)a/Koha/Item.pm (-2 / +2 lines)
Lines 245-251 sub safe_to_delete { Link Here
245
245
246
    return "not_same_branch"
246
    return "not_same_branch"
247
      if defined C4::Context->userenv
247
      if defined C4::Context->userenv
248
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ) )
248
      and defined C4::Context->userenv->{number}
249
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self );
249
250
250
    # check it doesn't have a waiting reserve
251
    # check it doesn't have a waiting reserve
251
    return "book_reserved"
252
    return "book_reserved"
252
- 

Return to bug 20256