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 = <