diff options
author | gerv%gerv.net <> | 2002-10-11 15:27:34 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-10-11 15:27:34 +0200 |
commit | eeec04a1f0a645b3922b2fad4ca76383a2fc8d39 (patch) | |
tree | cd2190533d57ac530739d995a61a051266a0cd1b /template/en/default | |
parent | 314c7b66a5b15ae0955598cad680d026341e78ee (diff) | |
download | bugzilla-eeec04a1f0a645b3922b2fad4ca76383a2fc8d39.tar.gz bugzilla-eeec04a1f0a645b3922b2fad4ca76383a2fc8d39.tar.xz |
Bug 173719 - warnings in report.cgi. Patch by gerv; r=bbaetz.
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/reports/report-table.html.tmpl | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl index 81ca27866..97dae5b48 100644 --- a/template/en/default/reports/report-table.html.tmpl +++ b/template/en/default/reports/report-table.html.tmpl @@ -62,18 +62,21 @@ [% total_name = "Total" %] -[% IF tbl_field %] - [%# Calculate and set up the Total table %] - - [% FOREACH tbl = tbl_names %] - [% FOREACH row = row_names %] - [% FOREACH col = col_names %] +[% FOREACH tbl = tbl_names %] + [% FOREACH row = row_names %] + [% FOREACH col = col_names %] + [% data.$tbl.$col.$row = (data.$tbl.$col.$row || 0) %] + + [% IF tbl_field %] + [%# Calculate values for the Total table %] [% data.$total_name.$col.$row = - data.$total_name.$col.$row + data.$tbl.$col.$row %] + (data.$total_name.$col.$row || 0) + data.$tbl.$col.$row %] [% END %] [% END %] [% END %] +[% END %] +[% IF tbl_field %] [% tbl_names.push(total_name) %] [% END %] @@ -140,8 +143,8 @@ </td> [% FOREACH col = col_names %] [% row_total = row_total + data.$tbl.$col.$row %] - [% col_totals.$col = col_totals.$col + data.$tbl.$col.$row %] [% NEXT IF col == "" %] + [% col_totals.$col = col_totals.$col + data.$tbl.$col.$row %] [% col_idx = 1 - col_idx %] <td class="[% classes.$row_idx.$col_idx %]" align="center"> |