summaryrefslogtreecommitdiff
path: root/httemplate/graph/elements/monthly.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-10-23 22:29:04 -0700
committerMark Wells <mark@freeside.biz>2014-10-23 22:29:04 -0700
commit5328d7183e79a507d83443e6fb4e1b31a1fd1624 (patch)
treebe72539bfd8209c703dd7956a3a6151628296276 /httemplate/graph/elements/monthly.html
parent6f2ca4da179be987ed021d6ec9e40774f817ac6e (diff)
make package churn report actually show package churn, #7990
Diffstat (limited to 'httemplate/graph/elements/monthly.html')
-rw-r--r--httemplate/graph/elements/monthly.html16
1 files changed, 6 insertions, 10 deletions
diff --git a/httemplate/graph/elements/monthly.html b/httemplate/graph/elements/monthly.html
index 939f18a35..4b988f166 100644
--- a/httemplate/graph/elements/monthly.html
+++ b/httemplate/graph/elements/monthly.html
@@ -125,6 +125,7 @@ my %reportopts = (
'cust_classnum'=> $opt{'cust_classnum'},
'remove_empty' => $opt{'remove_empty'},
'doublemonths' => $opt{'doublemonths'},
+ 'normalize' => $opt{'normalize'},
);
warn Dumper({ 'REPORTOPTS' => \%reportopts }) if $opt{'debug'};
@@ -147,17 +148,12 @@ $col_labels = $data->{label} if $opt{'daily'};
my @colors;
my @graph_labels;
my @no_graph;
-if ( $opt{'remove_empty'} ) {
+#if ( $opt{'remove_empty'} ) { # no, always do this
# then filter out per-item things for collapsed rows
- foreach my $i (@{ $data->{'indices'} }) {
- push @colors, $opt{'colors'}[$i];
- push @graph_labels, $opt{'graph_labels'}[$i];
- push @no_graph, $opt{'no_graph'}[$i];
- }
-} else {
- @colors = @{ $opt{'colors'} };
- @graph_labels = @{ $opt{'graph_labels'} };
- @no_graph = @{ $opt{'no_graph'} || [] };
+foreach my $i (@{ $data->{'indices'} }) {
+ push @colors, $opt{'colors'}[$i];
+ push @graph_labels, $opt{'graph_labels'}[$i];
+ push @no_graph, $opt{'no_graph'}[$i];
}
my @links;