From 5dd376d3c031cbce8434d044188e821cce4d06a0 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Patch works as advertised. Signed-off-by: Marc VĂ©ron --- 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