From 10c7e2b2c95ee521de1793ba2db539b7b82ea7fd Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Wed, 21 Oct 2015 13:11:28 +0200 Subject: [PATCH] Bug 15042 - Barcode hbyymmincr does not work when receiving serials To test: - Set autoBarcode = yymm0001 - Make sure you have a serial that is set to "create an item record when receiving this serial" - Receive an issue - Click in the barcode field - nothing happens - Apply patch and reload page - Receive an issue - Click in the barcode field - a barcode conforming to the hbyymmincr setting appears --- C4/Barcodes/ValueBuilder.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/Barcodes/ValueBuilder.pm b/C4/Barcodes/ValueBuilder.pm index c8cfe59..81747de 100644 --- a/C4/Barcodes/ValueBuilder.pm +++ b/C4/Barcodes/ValueBuilder.pm @@ -62,6 +62,9 @@ sub get_barcode { my $scr = " var form = document.getElementById('f'); if ( !form ) { + form = document.getElementById('serials_edit'); + } + if ( !form ) { form = document.getElementById('Aform'); } for (i=0 ; i