From 8eb6d92c00d0aa823cbe3250ad900d9b1aea5355 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 22 Jan 2004 08:02:25 +0000 Subject: Bug 231391 - make "cumulate" option work on new charts, together with a few UI tweaks. Patch by gerv; r=kiko, a=myk. --- Bugzilla/Chart.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Chart.pm') diff --git a/Bugzilla/Chart.pm b/Bugzilla/Chart.pm index 8d3d9f643..42827750f 100644 --- a/Bugzilla/Chart.pm +++ b/Bugzilla/Chart.pm @@ -89,6 +89,9 @@ sub init { $self->{'datefrom'} = $cgi->param('datefrom'); $self->{'dateto'} = $cgi->param('dateto'); + # If we are cumulating, a grand total makes no sense + $self->{'gt'} = 0 if $self->{'cumulate'}; + # Make sure the dates are ones we are able to interpret foreach my $date ('datefrom', 'dateto') { if ($self->{$date}) { -- cgit v1.2.3-24-g4f1b