summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2010-11-04 22:57:13 +0000
committerivan <ivan>2010-11-04 22:57:13 +0000
commit666ad2bb4d43e212e1a7832b16640d0f613b125e (patch)
tree1fb05bf054dd5d4f77169e9114c209cf05cadf3f /httemplate/edit
parente37e561378e7cc796f5967846e6989300440e8b1 (diff)
stop setting report_option_ to 1
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/process/part_pkg.cgi2
1 files changed, 1 insertions, 1 deletions
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;
}