From 309858142c2e6d5c370cb828c35f3732bddfe80e 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 Signed-off-by: Owen Leonard Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 1aaf68d9e57b0e131d0bc0cc4f0353cab75f2156) Signed-off-by: Martin Renvoize --- 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.39.5