From f8230678e0be26dd411e4b63f291dd723786cf3e Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Fri, 12 Nov 2010 14:56:25 -0500 Subject: [PATCH] Bug 5391 - can't add multiples to batch This was due to the use of an OR which seems to have caused the param method to be called in a scalar context thus returning only the first of multiple repeated cgi params. This patch retains the intent of the OR by replacing it with a conditional. Signed-off-by: Koustubha Kale Signed-off-by: Chris Cormack Signed-off-by: Chris Nighswonger --- labels/label-edit-batch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/labels/label-edit-batch.pl b/labels/label-edit-batch.pl index 94d56b4e72..559b78c432 100755 --- a/labels/label-edit-batch.pl +++ b/labels/label-edit-batch.pl @@ -58,6 +58,7 @@ my $op = $cgi->param('op') || 'edit'; my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || undef; my @label_ids = $cgi->param('label_id') if $cgi->param('label_id'); my @item_numbers = $cgi->param('item_number') if $cgi->param('item_number'); +my $barcode = $cgi->param('barcode') if $cgi->param('barcode'); my $branch_code = get_branch_code_from_name($template->param('LoginBranchname')); -- 2.39.5