Bug 32812: Fix cataloguing/value_builder/barcode_manual.pl
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 3 Feb 2023 10:58:51 +0000 (11:58 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 20 Feb 2023 12:44:11 +0000 (09:44 -0300)
Use event parameter instead of id.

This is part of the refactoring happening in bug 30975

Test plan:
1. Verify that the plugin continues to work as before

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
cataloguing/value_builder/barcode_manual.pl

index e809ca7..a7d015b 100755 (executable)
@@ -66,7 +66,8 @@ END_OF_JS
     my $js  = <<END_OF_JS;
     <script>
 
-    function Click$function_name(id) {
+    function Click$function_name(event) {
+        const id = event.data.id;
         $scr
             return false;
     }