From 6494207aa3dc4342f8bdb11a35edfd157fb2328c 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 Content-Type: text/plain; charset=utf-8 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 Signed-off-by: David Nind Signed-off-by: Marcel de Rooy --- 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.30.2