Bug 27586: Import patrons script has a confirm switch that doesn't nothing!
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 1 Feb 2021 18:22:58 +0000 (13:22 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 12 Feb 2021 12:50:17 +0000 (13:50 +0100)
commit19e0b91e12b520387938bb9c20bd605b757d3211
treed1ed75656e98303d110af478cff9ea4d9590499c
parentbc2e3e0d460d856c1b21a52c084697b9800013ff
Bug 27586: Import patrons script has a confirm switch that doesn't nothing!

If the script misc/import_patrons.pl is run without "--confirm" it reports
that it is "running in dry-run mode" but it is not!

Test Plan:
1) Import a CSV of patrons using import_patrons.pm *without* the --confirm parameter
2) Note that it does actually import the patrons
3) Apply this patch
4) Note that this time the patrons are not actually imported
5) Import again with --confirm
6) Note that the patrons were actually imported this time!

Signed-off-by: David Nind <david@davidnind.com>
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 d3005a2a4c493c624ffd6204f6fccc83ea350361)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patrons/Import.pm
misc/import_patrons.pl