Bug 27586: Rollback should be before return statement

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle Hall 2021-02-05 06:15:06 -05:00 committed by Jonathan Druart
parent d3005a2a4c
commit 48e56b320a

View file

@ -420,6 +420,8 @@ sub import_patrons {
}
}
$schema->storage->txn_rollback if $dry_run;
return {
feedback => \@feedback,
errors => \@errors,
@ -429,8 +431,6 @@ sub import_patrons {
invalid => $invalid,
imported_borrowers => \@imported_borrowers,
};
$schema->storage->txn_rollback if $dry_run;
}
=head2 prepare_columns