Browse Source

label-home.pl - Fix major error causing deletion on every run. Corrected variable scope to avoid warnings.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
3.0.x
Joe Atzberger 17 years ago
committed by Joshua Ferraro
parent
commit
6303d6d0a5
  1. 7
      labels/label-home.pl

7
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'} );

Loading…
Cancel
Save