Bug 8524 follow-up: fix Javascript syntax error
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 9 Aug 2012 12:39:10 +0000 (08:39 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 31 Aug 2012 15:42:48 +0000 (17:42 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Barcodes/ValueBuilder.pm
cataloguing/value_builder/barcode_manual.pl

index 1a4f59a..13c5792 100644 (file)
@@ -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');
     }
     ";
index c579390..7b2e465 100755 (executable)
@@ -91,7 +91,7 @@ sub plugin_javascript {
 
 # default js body (if not filled by hbyymmincr)
     $scr or $scr = <<END_OF_JS;
-    if (\$('#' + id).val() == '' || force) {
+    if (\$('#' + id).val() == '') {
         \$('#' + id).val('$nextnum');
     }
 END_OF_JS