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>
(cherry picked from commit fa0aff41ac)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Kyle M Hall 2021-02-05 06:15:06 -05:00 committed by Victor Grousset/tuxayo
parent 534853fcab
commit f65cff20e3
1 changed files with 2 additions and 2 deletions

View File

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