X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fgraph%2Fcust_bill_pkg.cgi;h=151b295047b0849a851517d967d69c793c0b6720;hb=da1188b39e62d48f5dca496ee7415189bd037219;hp=57fb81b62038abd05364c513fd7735428ab151bd;hpb=130b0b14727bafe247719a4005c527bb8b852c1d;p=freeside.git diff --git a/httemplate/graph/cust_bill_pkg.cgi b/httemplate/graph/cust_bill_pkg.cgi index 57fb81b62..151b29504 100644 --- a/httemplate/graph/cust_bill_pkg.cgi +++ b/httemplate/graph/cust_bill_pkg.cgi @@ -138,7 +138,7 @@ if ( $cgi->param('class_agg_break') eq 'aggregate' or my $i = 0; foreach (@$these) { $i++ until $not_these->[$i] == $_; - splice($not_these, $i, 1); + splice(@$not_these, $i, 1); } push @classnums, $these; push @not_classnums, $not_these; @@ -254,12 +254,17 @@ foreach my $agent ( $all_agent || $sel_agent || $FS::CurrentUser::CurrentUser->a } elsif ( $cgi->param('class_agg_break') eq 'breakdown' ) { - # if we're working with report options, @classnums here contains - # arrays of multiple classnums for (my $i = 0; $i < scalar @classnums; $i++) { - my $row_classnum = join(',', @{ $classnums[$i] }); - my $row_classname = join(', ', @{ $classnames[$i] }); - my $not_row_classnum = join(',', @{ $not_classnums[$i] }); + my $row_classnum = $classnums[$i]; + my $row_classname = $classnames[$i]; + my $not_row_classnum = ''; + if ( $class_param eq 'report_optionnum' ) { + # if we're working with report options, @classnums here contains + # arrays of multiple classnums + $row_classnum = join(',', @$row_classnum); + $row_classname = join(', ', @$row_classname); + $not_row_classnum = join(',', @{ $not_classnums[$i] }); + } foreach my $component ( @components ) { push @items, 'cust_bill_pkg';