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

(-)a/Koha/Item.pm (-2 / +2 lines)
Lines 276-282 sub safe_to_delete { Link Here
276
276
277
    return "not_same_branch"
277
    return "not_same_branch"
278
      if defined C4::Context->userenv
278
      if defined C4::Context->userenv
279
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ) )
279
      and defined C4::Context->userenv->{number}
280
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self );
280
281
281
    # check it doesn't have a waiting reserve
282
    # check it doesn't have a waiting reserve
282
    return "book_reserved"
283
    return "book_reserved"
283
- 

Return to bug 20256