https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25303

--- Comment #14 from Jonathan Druart <[email protected]> 
---
This follow-up is doing this:

-    $holds->delete;
+    $biblio->holds->delete;

I was not expected such behaviour changes, it's not as easy as fixing the
tests. Did you check the occurrences in the code?

Maybe we should call ->reset before the loop instead?

@ Koha/Objects.pm:185 @ sub delete {
     if ( Class::Inspector->function_exists( $self->object_class, 'delete' ) )
{
         my $objects_deleted;
         $self->_resultset->result_source->schema->txn_do( sub {
+            $self->reset;
             while ( my $o = $self->next ) {
                 $o->delete;
                 $objects_deleted++;

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to