From 6c77b4d117bb9a92abc5b0ddeb87fe7f2ed1680c Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Thu, 9 Aug 2012 08:39:10 -0400 Subject: [PATCH] Bug 8524 follow-up: fix Javascript syntax error Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- C4/Barcodes/ValueBuilder.pm | 2 +- cataloguing/value_builder/barcode_manual.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Barcodes/ValueBuilder.pm b/C4/Barcodes/ValueBuilder.pm index 1a4f59a42b..13c57924f9 100644 --- a/C4/Barcodes/ValueBuilder.pm +++ b/C4/Barcodes/ValueBuilder.pm @@ -64,7 +64,7 @@ sub get_barcode { fnum = i; } } - if (\$('#' + id).val() == '' || force) { + if (\$('#' + id).val() == '') { \$('#' + id).val(document.f.field_value[fnum].value + '$nextnum'); } "; diff --git a/cataloguing/value_builder/barcode_manual.pl b/cataloguing/value_builder/barcode_manual.pl index c5793907f1..7b2e465641 100755 --- a/cataloguing/value_builder/barcode_manual.pl +++ b/cataloguing/value_builder/barcode_manual.pl @@ -91,7 +91,7 @@ sub plugin_javascript { # default js body (if not filled by hbyymmincr) $scr or $scr = <