From 6303d6d0a5e7dbf231323bd46b42202ee91990a5 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Tue, 4 Dec 2007 17:40:44 -0600 Subject: [PATCH] label-home.pl - Fix major error causing deletion on every run. Corrected variable scope to avoid warnings. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- labels/label-home.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/labels/label-home.pl b/labels/label-home.pl index 9c69367e0c..1422306220 100755 --- a/labels/label-home.pl +++ b/labels/label-home.pl @@ -43,13 +43,10 @@ my @layouts = get_layouts(); my @barcode_types = get_barcode_types(); my @batches = get_batches(); -if ($op = 'delete_layout') { -delete_layout($layout_id); +if ($op eq 'delete_layout') { # had been assignment! serious error! + delete_layout($layout_id); } - - - ### $data $template->param( guidebox => 1 ) if ( $data->{'guidebox'} ); -- 2.39.5