Koha/misc/migration_tools
David Cook 9622561636 Bug 26231: Remove incorrect use of AddAuthority() when 001 present
This patch removes the use of AddAuthority with a non-empty
authid argument, since that triggers an update rather than an insert.

In practice, the update also fails, but the error isn't raised,
as the database connection doesn't have RaiseError set.

Test plan:
1) Do not apply patch
2) Try to bulkmarcimport an authority file with a 001
3) Observe that the script reports success but no authority is added
4) Apply the path
5) Try to bulkmarcimport an authority file with a 001
6) Observe that the script reports success and the authority is added

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-28 10:09:52 +02:00
..
22_to_30 Bug 21395: Fix QA errors 2020-06-29 12:37:02 +02:00
ifla
build_oai_sets.pl Bug 23696: take deleted biblios into account when building oai sets 2020-07-24 14:09:30 +02:00
buildCOUNTRY.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
buildEDITORS.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
buildLANG.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
bulkmarcimport.pl Bug 26231: Remove incorrect use of AddAuthority() when 001 present 2020-09-28 10:09:52 +02:00
checkNonIndexedBiblios.pl
create_analytical_rel.pl
fix_onloan.pl Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
import_lexile.pl
koha-svc.pl
rebuild_zebra.pl
rebuild_zebra_sliced.sh
remove_unused_authorities.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
switch_marc21_series_info.pl Bug 22470: Missing the table name on misc/migration_tools/switch_marc21_series_info.pl 2020-06-15 11:53:36 +02:00
upgradeitems.pl