From 5a13300ed9b80545c8805f6c81e9fa4570d24557 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Feb 2023 14:06:27 +0100 Subject: [PATCH] Bug 32779: ERM - Fix import from list There is a typo, '$' is missing, which caused the following error: Use of inherited AUTOLOAD for non-method Koha::BackgroundJob::CreateEHoldingsFromBiblios::fix_coverage() is no longer allowed at /kohadevbox/koha/Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm line 126 Test plan: Create a list, add an item Turn on ERM Create a package Go to /cgi-bin/koha/erm/eholdings/local/titles Click "Import from list" Select the package, then your list, and import It should succeed --- Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm b/Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm index c57c223312c..c48181f34fa 100644 --- a/Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm +++ b/Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm @@ -124,7 +124,7 @@ sub process { my ( $date_first_issue_online, $date_last_issue_online ) = $fix_coverage->( $record->subfield( '866', 'a' ) ); my ( $num_first_vol_online, $num_last_vol_online ) = - fix_coverage->( $record->subfield( '863', 'a' ) ); + $fix_coverage->( $record->subfield( '863', 'a' ) ); my ( $num_first_issue_online, $num_last_issue_online ) = ( '', '' ); # FIXME ? my $title_url = $record->subfield( '856', 'u' ); -- 2.25.1