Bug 204798 - Total in graph report is incorrect. Patch by kniht@us.ibm.com; r=gerv, a=justdave.

git-svn-id: svn://10.0.0.236/trunk@144803 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gerv%gerv.net
2003-07-13 22:25:41 +00:00
parent 074c7e02d0
commit 2ab29f0f6a
2 changed files with 11 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ foreach my $tbl (@tbl_names) {
push(@tbl_data, \@col_data);
}
push(@image_data, \@tbl_data);
unshift(@image_data, \@tbl_data);
}
$vars->{'col_field'} = $col_field;

View File

@@ -94,8 +94,16 @@
[% imageurl = BLOCK %]report.cgi?[% imagebase %]&format=
[% format FILTER url_quote %]&ctype=png&action=plot&
[% IF tbl_field AND tbl != "-total-" %]
[% tbl_field FILTER url_quote %]=[% tbl FILTER url_quote %]&
[% IF tbl_field %]
[% IF tbl != "-total-" %]
[% tbl_field FILTER url_quote %]=[% tbl FILTER url_quote %]&
[% ELSE %]
[% FOREACH tblname = tbl_names %]
[% IF tblname != "-total-" %]
[% tbl_field FILTER url_quote %]=[% tblname FILTER url_quote %]&
[% END %]
[% END %]
[% END %]
[% END %]width=[% width %]&height=[% height %]
[% END %]