diff --git a/Koha/Patrons/Import.pm b/Koha/Patrons/Import.pm index 190a1f5741..9bca9fd061 100644 --- a/Koha/Patrons/Import.pm +++ b/Koha/Patrons/Import.pm @@ -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