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 ++ buglist.cgi | 2 +- template/en/default/reports/chart.png.tmpl | 2 +- template/en/default/reports/create-chart.html.tmpl | 34 ++++++++++++---------- 4 files changed, 23 insertions(+), 18 deletions(-) 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}) { diff --git a/buglist.cgi b/buglist.cgi index b822968c3..116e2ea75 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -280,7 +280,7 @@ if ($::FORM{'cmdtype'} eq "dorem") { } elsif ($::FORM{'remaction'} eq "runseries") { $::buffer = LookupSeries($::FORM{"series_id"}); - $vars->{'title'} = "Bug List: $::FORM{'namedcmd'}"; + $vars->{'searchname'} = $::FORM{'namedcmd'}; $params = new Bugzilla::CGI($::buffer); $order = $params->param('order') || $order; } diff --git a/template/en/default/reports/chart.png.tmpl b/template/en/default/reports/chart.png.tmpl index 43d4e962d..18452175c 100644 --- a/template/en/default/reports/chart.png.tmpl +++ b/template/en/default/reports/chart.png.tmpl @@ -22,7 +22,7 @@ [% y_label = "Bugs" %] [% x_label = "Time" %] -[% IF cumulate %] +[% IF chart.cumulate %] [% USE graph = GD.Graph.area(width, height) %] [% graph.set(cumulate => "true") %] [% ELSE %] diff --git a/template/en/default/reports/create-chart.html.tmpl b/template/en/default/reports/create-chart.html.tmpl index 2751c7eed..0879d8ec6 100644 --- a/template/en/default/reports/create-chart.html.tmpl +++ b/template/en/default/reports/create-chart.html.tmpl @@ -139,11 +139,11 @@ function subcatSelected() { [% IF chart.lines.size > 0 %] - + - + @@ -182,34 +182,35 @@ function subcatSelected() { [% END %] @@ -249,7 +250,8 @@ function subcatSelected() { -- cgit v1.2.3-24-g4f1b
SelectSelect Label Data SetSubs
- [% series.category FILTER html %] / [%+ series.subcategory FILTER html %] / [%+ series.name FILTER html %] - - [% IF series.creator != 0 AND series.isSubscribed(user.id) %] - - [% ELSE %] - + [% IF series.creator != 0 %] + [% IF series.isSubscribed(user.id) %] + + [% ELSE %] + + [% END %] [% END %] [% IF user.id == series.creator OR UserInGroup("admin") %] Edit + [% series.series_id %]">Edit | [% END %] + Run Search
Cumulate: - +