@@ -, +, @@ as found $ kshell k$ prove t/db_dependent/Koha/Item.t --- Koha/Item.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/Item.pm +++ a/Koha/Item.pm @@ -301,7 +301,7 @@ sub safe_to_delete { # check it doesn't have a waiting reserve $error = "book_reserved" - if $self->holds->search( { found => [ 'W', 'T' ] } )->count; + if $self->holds->filter_by_found->count; $error = "linked_analytics" if C4::Items::GetAnalyticsCount( $self->itemnumber ) > 0; --