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

(-)a/Koha/Objects.pm (-1 / +1 lines)
Lines 182-187 sub delete { Link Here
182
    if ( Class::Inspector->function_exists( $self->object_class, 'delete' ) ) {
182
    if ( Class::Inspector->function_exists( $self->object_class, 'delete' ) ) {
183
        my $objects_deleted;
183
        my $objects_deleted;
184
        $self->_resultset->result_source->schema->txn_do( sub {
184
        $self->_resultset->result_source->schema->txn_do( sub {
185
            $self->reset; # If we iterated already over the set
185
            while ( my $o = $self->next ) {
186
            while ( my $o = $self->next ) {
186
                $o->delete;
187
                $o->delete;
187
                $objects_deleted++;
188
                $objects_deleted++;
188
- 

Return to bug 25303