diff --git a/mozilla/webtools/bugzilla/report.cgi b/mozilla/webtools/bugzilla/report.cgi index de659ab25b8..487859190bd 100755 --- a/mozilla/webtools/bugzilla/report.cgi +++ b/mozilla/webtools/bugzilla/report.cgi @@ -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; diff --git a/mozilla/webtools/bugzilla/template/en/default/reports/report.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/reports/report.html.tmpl index 321ad6ae8d4..31308c10c71 100644 --- a/mozilla/webtools/bugzilla/template/en/default/reports/report.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/reports/report.html.tmpl @@ -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 %]