Commit 80808090 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 262864 - make tabular reports show columns which have an empty header. Patch…

Bug 262864 - make tabular reports show columns which have an empty header. Patch by robzilla@siklos.ca; r=gerv, a=myk.
parent 3dbc33fa
...@@ -170,6 +170,12 @@ my $tbl_isnumeric = 1; ...@@ -170,6 +170,12 @@ my $tbl_isnumeric = 1;
while (MoreSQLData()) { while (MoreSQLData()) {
my ($row, $col, $tbl) = FetchSQLData(); my ($row, $col, $tbl) = FetchSQLData();
# handle empty dimension member names
$row = ' ' if ($row eq '');
$col = ' ' if ($col eq '');
$tbl = ' ' if ($tbl eq '');
$row = "" if ($row eq $columns{''}); $row = "" if ($row eq $columns{''});
$col = "" if ($col eq $columns{''}); $col = "" if ($col eq $columns{''});
$tbl = "" if ($tbl eq $columns{''}); $tbl = "" if ($tbl eq $columns{''});
...@@ -330,7 +336,7 @@ sub get_names { ...@@ -330,7 +336,7 @@ sub get_names {
'rep_platform' => \@::legal_platform, 'rep_platform' => \@::legal_platform,
'op_sys' => \@::legal_opsys, 'op_sys' => \@::legal_opsys,
'bug_status' => \@::legal_bug_status, 'bug_status' => \@::legal_bug_status,
'resolution' => \@::legal_resolution); 'resolution' => [' ', @::legal_resolution]);
my $field_list = $fields{$field}; my $field_list = $fields{$field};
my @sorted; my @sorted;
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
[% col_idx = 1 - col_idx %] [% col_idx = 1 - col_idx %]
<td class="[% classes.$row_idx.$col_idx %]"> <td class="[% classes.$row_idx.$col_idx %]">
[% col FILTER html %] [% col FILTER html FILTER replace('^ $','&nbsp;') %]
</td> </td>
[% END %] [% END %]
<td class="ttotal"> <td class="ttotal">
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
[% row_idx = 1 - row_idx %] [% row_idx = 1 - row_idx %]
<tr> <tr>
<td class="[% classes.$row_idx.$col_idx %]" align="right"> <td class="[% classes.$row_idx.$col_idx %]" align="right">
[% row FILTER html %] [% row FILTER html FILTER replace('^ $','&nbsp;') %]
</td> </td>
[% FOREACH col = col_names %] [% FOREACH col = col_names %]
[% row_total = row_total + data.$tbl.$col.$row %] [% row_total = row_total + data.$tbl.$col.$row %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment