From: ivan Date: Thu, 4 Nov 2010 22:57:13 +0000 (+0000) Subject: stop setting report_option_ to 1 X-Git-Tag: TORRUS_1_0_9~141 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=666ad2bb4d43e212e1a7832b16640d0f613b125e stop setting report_option_ to 1 --- diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi index 08cc14086..97ae4e7ee 100755 --- a/httemplate/edit/process/part_pkg.cgi +++ b/httemplate/edit/process/part_pkg.cgi @@ -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; }