From 0954f9b108654c5da8041884ee8b767adbffd8e5 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 13 Sep 2022 11:09:23 +0100 Subject: [PATCH] Bug 31526: Follow-up for bug 29697 There was a typo in bug 29697 which lead to a code reference error. Test plan 1) Export a record with ISBN from your catalog (Save as MARC) 2) Stage it using the ISBN matching rule (make sure it matched) 3) Manage staged import and click on the Diff link Prior to this patch an error would be thrown, after the patch you should now get the diff view as expected again. Signed-off-by: Owen Leonard --- tools/showdiffmarc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/showdiffmarc.pl b/tools/showdiffmarc.pl index a4eb7eab08..f981342a83 100755 --- a/tools/showdiffmarc.pl +++ b/tools/showdiffmarc.pl @@ -62,7 +62,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( if ( $type eq 'biblio' ) { my $biblio = Koha::Biblios->find( $recordid ); - $record = $biblio->metadata->record->({ embed_items => 1 }); + $record = $biblio->metadata->record({ embed_items => 1 }); $recordTitle = $biblio->title; } elsif ( $type eq 'auth' ) { -- 2.20.1