summaryrefslogtreecommitdiffstats
path: root/report.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2005-03-11 07:20:18 +0100
committergerv%gerv.net <>2005-03-11 07:20:18 +0100
commit808080906d2e37fcd3df917cc65fd31741466f87 (patch)
treeafdfa98b450027c2675060c6d8df318bfbfb8c09 /report.cgi
parent3dbc33fa256c3df2f4c15bad98dac5a73fcc09b3 (diff)
downloadbugzilla-808080906d2e37fcd3df917cc65fd31741466f87.tar.gz
bugzilla-808080906d2e37fcd3df917cc65fd31741466f87.tar.xz
Bug 262864 - make tabular reports show columns which have an empty header. Patch by robzilla@siklos.ca; r=gerv, a=myk.
Diffstat (limited to 'report.cgi')
-rwxr-xr-xreport.cgi8
1 files changed, 7 insertions, 1 deletions
diff --git a/report.cgi b/report.cgi
index 42dc390cb..a2beeebf1 100755
--- a/report.cgi
+++ b/report.cgi
@@ -170,6 +170,12 @@ my $tbl_isnumeric = 1;
while (MoreSQLData()) {
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{''});
$col = "" if ($col eq $columns{''});
$tbl = "" if ($tbl eq $columns{''});
@@ -330,7 +336,7 @@ sub get_names {
'rep_platform' => \@::legal_platform,
'op_sys' => \@::legal_opsys,
'bug_status' => \@::legal_bug_status,
- 'resolution' => \@::legal_resolution);
+ 'resolution' => [' ', @::legal_resolution]);
my $field_list = $fields{$field};
my @sorted;