@@ -, +, @@ --- Koha/Patrons/Import.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Koha/Patrons/Import.pm +++ a/Koha/Patrons/Import.pm @@ -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 --