From 0448a6d014a489a5fc931ecc1ef51aee71e2099e 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 --- labels/label-edit-batch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labels/label-edit-batch.pl b/labels/label-edit-batch.pl index 370807ca6f..8f8959760a 100755 --- a/labels/label-edit-batch.pl +++ b/labels/label-edit-batch.pl @@ -58,7 +58,7 @@ my $display_columns = [ {_label_number => {label => 'Label Number', link_field 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') || (); +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