]> git.koha-community.org Git - koha.git/commit
Bug 30939: Fix use statement for DelAuthority
authorKatrin Fischer <katrin.fischer.83@web.de>
Fri, 17 Jun 2022 22:34:45 +0000 (22:34 +0000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Thu, 11 Aug 2022 13:06:01 +0000 (15:06 +0200)
commitf129843b6ef3b409adeb6cddcc5fea180d85103c
treeb891f45b817fe667c1f7bdb5e50404b51525425b
parent9f79d77171bb72e401cd57a67de0d738e0c72d87
Bug 30939: Fix use statement for DelAuthority

Without this patch, the script won't delete any
unused authorities, but gives an error instead
and dies:

Undefined subroutine &main::DelAuthority called at ./misc/migration_tools/remove_unused_authorities.pl line 98.

To test:
- Run from koha-shell:
  ./misc/migration_tools/remove_unused_authorities.pl -t
- Verify several authorities are reported as unused
- ./misc/migration_tools/remove_unused_authorities.pl -c
- Verify the error message is shown when the first unused
  authority is found and the script stops
- Apply patch and rerun:
  ./misc/migration_tools/remove_unused_authorities.pl -t
- Verify the error is gone, the script finishes and auhorities
  are deleted

https://bugs.koha-community.org/show_bug.cgi?id=30936

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit df393b38b8102b4d304b79cb2ba2e73caf8187bd)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 29a627bdfc825dfcbbb4a6185f20300da7bf137f)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
misc/migration_tools/remove_unused_authorities.pl