stop setting report_option_ to 1
authorivan <ivan>
Thu, 4 Nov 2010 22:57:13 +0000 (22:57 +0000)
committerivan <ivan>
Thu, 4 Nov 2010 22:57:13 +0000 (22:57 +0000)
httemplate/edit/process/part_pkg.cgi

index 08cc140..97ae4e7 100755 (executable)
@@ -103,7 +103,7 @@ my $args_callback = sub {
     $options{"usage_taxproductnum_$_"} = $value;
   }
 
-  foreach ( $cgi->param('report_option') ) {
+  foreach ( grep $_, $cgi->param('report_option') ) {
     $error ||= "Illegal optional report class: $_" unless ( $_ =~ /^\d*$/  );
     $options{"report_option_$_"} = 1;
   }