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

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

Return to bug 20256