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

(-)a/Koha/Item.pm (-2 / +1 lines)
Lines 301-307 sub safe_to_delete { Link Here
301
301
302
    # check it doesn't have a waiting reserve
302
    # check it doesn't have a waiting reserve
303
    $error = "book_reserved"
303
    $error = "book_reserved"
304
      if $self->holds->search( { found => [ 'W', 'T' ] } )->count;
304
      if $self->holds->filter_by_found->count;
305
305
306
    $error = "linked_analytics"
306
    $error = "linked_analytics"
307
      if C4::Items::GetAnalyticsCount( $self->itemnumber ) > 0;
307
      if C4::Items::GetAnalyticsCount( $self->itemnumber ) > 0;
308
- 

Return to bug 32529