From: gerv%gerv.net <> Date: Fri, 11 Mar 2005 06:20:18 +0000 (+0000) Subject: Bug 262864 - make tabular reports show columns which have an empty header. Patch... X-Git-Tag: bugzilla-2.19.3~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=808080906d2e37fcd3df917cc65fd31741466f87;p=thirdparty%2Fbugzilla.git Bug 262864 - make tabular reports show columns which have an empty header. Patch by robzilla@siklos.ca; r=gerv, a=myk. --- diff --git a/report.cgi b/report.cgi index 42dc390cbc..a2beeebf1e 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; diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl index 21ff1b8744..3c90d5bf2f 100644 --- a/template/en/default/reports/report-table.html.tmpl +++ b/template/en/default/reports/report-table.html.tmpl @@ -85,7 +85,7 @@ [% col_idx = 1 - col_idx %]