From a2e4fd53e4bbbd159f4d367ec5549fe42c66ffd1 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 Signed-off-by: Pedro Amorim Signed-off-by: Tomas Cohen Arazi (cherry picked from commit d8022865cabf814c6d99882312b8422e3b8326d6) Signed-off-by: Jacob O'Mara --- 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 c57c223312..c48181f34f 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.39.5