From f5141d5b3c61270b384ef3682b23f6be0e893be1 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 4 Oct 2022 21:23:57 +0000 Subject: [PATCH] Bug 31682: Silence automatic linker warn To test: 1. Open the plack-intranet-error.log in your terminal 2. When editing or adding a bibliographic record, click the button to link authorities automatically. 3. Notice the warn in the log 4. Apply the patch, restart services and refresh the page 5. Click the button again. There should be no warn Sponsored-by: Catalyst IT --- svc/cataloguing/automatic_linker.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/cataloguing/automatic_linker.pl b/svc/cataloguing/automatic_linker.pl index 228e01f402..c132fe2473 100755 --- a/svc/cataloguing/automatic_linker.pl +++ b/svc/cataloguing/automatic_linker.pl @@ -51,7 +51,7 @@ my $record = TransformHtmlToMarc($input,1); my ( $headings_changed, $results ) = BiblioAutoLink ( $record, - $input->param('frameworkcode'), + scalar $input->param('frameworkcode'), 1 ); -- 2.20.1