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

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

Return to bug 20256