From bda873a7e2644163c29f7ce4629268e187abd531 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 3 Feb 2023 11:58:51 +0100 Subject: [PATCH] Bug 32812: Fix cataloguing/value_builder/barcode_manual.pl 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 --- cataloguing/value_builder/barcode_manual.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cataloguing/value_builder/barcode_manual.pl b/cataloguing/value_builder/barcode_manual.pl index e809ca75f8..a7d015ba7a 100755 --- a/cataloguing/value_builder/barcode_manual.pl +++ b/cataloguing/value_builder/barcode_manual.pl @@ -66,7 +66,8 @@ END_OF_JS my $js = < - function Click$function_name(id) { + function Click$function_name(event) { + const id = event.data.id; $scr return false; } -- 2.30.2