From 8d28b02891cff69fbe0b2c6c89d48020d9ce61d4 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 24 Jan 2020 09:20:06 +0100 Subject: [PATCH] Bug 24503: fix missing use in value builder barcode_manual.pl Bug 22721 added use C4::Biblio in cataloguing/value_builder/barcode.pl. This is missing in value builder barcode_manual.pl. You get the error : Undefined subroutine &Koha::FrameworkPlugin::GetMarcFromKohaField called at cataloguing/value_builder/barcode_manual.pl line 41. Test plan : 1) Configure a subfield of item to use value builder barcode_manual.pl 2) Go to a record 3) Try to add a new item 4) Check the value builder is OK Signed-off-by: Marcel de Rooy Tested with autobarcode==year-0001,0002 No internal server error, but generates a barcode now. Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- cataloguing/value_builder/barcode_manual.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/cataloguing/value_builder/barcode_manual.pl b/cataloguing/value_builder/barcode_manual.pl index 8399ecfb81..1167c7fbc8 100755 --- a/cataloguing/value_builder/barcode_manual.pl +++ b/cataloguing/value_builder/barcode_manual.pl @@ -24,6 +24,7 @@ use Modern::Perl; use C4::Context; use C4::Barcodes::ValueBuilder; +use C4::Biblio qw/GetMarcFromKohaField/; use Koha::DateUtils; my $DEBUG = 0; -- 2.39.5