From 94e970f23f66b8110842bca466e6eb665713e2ff Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Wed, 9 Nov 2011 15:49:22 -0500 Subject: [PATCH 2/2] [BZ6679] Don't change $_ in a list context Content-Type: text/plain; charset="utf-8" --- labels/label-print.pl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/labels/label-print.pl b/labels/label-print.pl index 9e48590..ce99959 100755 --- a/labels/label-print.pl +++ b/labels/label-print.pl @@ -112,8 +112,8 @@ elsif ($op eq 'none') { # setup select menus for selecting layout and template for this run... $referer = $ENV{'HTTP_REFERER'}; $referer =~ s/^.*?:\/\/.*?(\/.*)$/$1/m; - @batch_ids = grep{$_ = {batch_id => $_}} @batch_ids; - @label_ids = grep{$_ = {label_id => $_}} @label_ids; + @batch_ids = map{{batch_id => $_}} @batch_ids; + @label_ids = map{{label_id => $_}} @label_ids; @item_numbers = grep{my $number=$_; $number = {item_number => $number}} @item_numbers; $templates = get_all_templates(field_list => 'template_id, template_code', filter => 'creator = "Labels"'); $layouts = get_all_layouts(field_list => 'layout_id, layout_name', filter => 'creator = "Labels"'); -- 1.7.0.4