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:
parent
d3005a2a4c
commit
48e56b320a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue