Bugzilla – Attachment 136320 Details for
Bug 30939
remove_unused_authorities.pl is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30939: Fix use statement for DelAuthority
Bug-30939-Fix-use-statement-for-DelAuthority.patch (text/plain), 1.52 KB, created by
Katrin Fischer
on 2022-06-17 22:41:28 UTC
(
hide
)
Description:
Bug 30939: Fix use statement for DelAuthority
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-06-17 22:41:28 UTC
Size:
1.52 KB
patch
obsolete
>From 41ac0cd602c461a1a42c40c4a432dcd57d0fc162 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Fri, 17 Jun 2022 22:34:45 +0000 >Subject: [PATCH] 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 >--- > misc/migration_tools/remove_unused_authorities.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/migration_tools/remove_unused_authorities.pl b/misc/migration_tools/remove_unused_authorities.pl >index da57f88f42..0065a16e9f 100755 >--- a/misc/migration_tools/remove_unused_authorities.pl >+++ b/misc/migration_tools/remove_unused_authorities.pl >@@ -24,7 +24,7 @@ use Modern::Perl; > > use Koha::Script; > use C4::Context; >-use C4::AuthoritiesMarc; >+use C4::AuthoritiesMarc qw( DelAuthority ); > use Getopt::Long qw( GetOptions ); > > use Koha::SearchEngine::Search; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30939
:
136320
|
136323
|
136661