Skip to content

Commit

Permalink
Bug 1893924 - Tabular reports return blank tables
Browse files Browse the repository at this point in the history
  • Loading branch information
dklawren committed May 1, 2024
1 parent 74c9480 commit 66792a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions report.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,12 @@ sub check_value {
my ($field, $result) = @_;

my $value;
if (!defined $field) {
if (!defined $field || $field eq '') {
$value = '';
}
elsif ($field eq '') {
$value = ' ';
}
else {
$value = shift @$result;
$value = ' ' if (!defined $value || $value eq '');
$value = '' if (!defined $value || $value eq '');
$value = '---' if ($field eq 'resolution' && $value eq ' ');
}
return $value;
Expand Down
4 changes: 0 additions & 4 deletions template/en/default/reports/report-table.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
[% col_field_disp = field_descs.$col_field || col_field %]
[% row_field_disp = field_descs.$row_field || row_field %]

[%# Fix an empty table name that can cause issues on CSS selectors, etc. %]
[% IF tbl == " " %]
[% tbl = "" %]
[% END %]
[% urlbase = BLOCK %][% basepath FILTER none %]buglist.cgi?[% buglistbase FILTER html %][% END %]
[% IF tbl == "-total-" %]
[% IF tbl_vals %]
Expand Down

0 comments on commit 66792a8

Please sign in to comment.