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>
(cherry picked from commit 48e56b320a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8d117c6eba)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2021-02-05 06:15:06 -05:00 committed by Andrew Fuerste-Henry
parent c0a7f53a62
commit fa0aff41ac
1 changed files with 2 additions and 2 deletions

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