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

(-)a/Koha/Item.pm (-2 / +2 lines)
Lines 267-273 sub safe_to_delete { Link Here
267
267
268
    return "not_same_branch"
268
    return "not_same_branch"
269
      if defined C4::Context->userenv
269
      if defined C4::Context->userenv
270
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self ) )
270
      and defined C4::Context->userenv->{number}
271
      and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $self );
271
272
272
    # check it doesn't have a waiting reserve
273
    # check it doesn't have a waiting reserve
273
    return "book_reserved"
274
    return "book_reserved"
274
- 

Return to bug 20256