[freeside-commits] branch FREESIDE_3_BRANCH updated. b42dfa0e53c24702c08a71de83cca3e06486a011

Mark Wells mark at 420.am
Mon Jan 20 17:31:18 PST 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  b42dfa0e53c24702c08a71de83cca3e06486a011 (commit)
      from  1bcbc87bbbe83877a95d3a24a68b3b63797a7adb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b42dfa0e53c24702c08a71de83cca3e06486a011
Author: Mark Wells <mark at freeside.biz>
Date:   Mon Jan 20 17:31:05 2014 -0800

    bugfix for sales report, #27078, from #25459

diff --git a/httemplate/graph/cust_bill_pkg.cgi b/httemplate/graph/cust_bill_pkg.cgi
index edc339d..151b295 100644
--- a/httemplate/graph/cust_bill_pkg.cgi
+++ b/httemplate/graph/cust_bill_pkg.cgi
@@ -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';

-----------------------------------------------------------------------

Summary of changes:
 httemplate/graph/cust_bill_pkg.cgi |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)




More information about the freeside-commits mailing list