]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 252137: tabular reports shouldn't be broken if a row/col/tbl header...
authorjocuri%softhome.net <>
Mon, 25 Oct 2004 06:26:09 +0000 (06:26 +0000)
committerjocuri%softhome.net <>
Mon, 25 Oct 2004 06:26:09 +0000 (06:26 +0000)
report.cgi

index 66060723d0a0e01ae51daad269cc762f395cf511..9a06dee5e9d49b77e8a486b94d3f70bab9139f0d 100755 (executable)
@@ -168,6 +168,12 @@ while (MoreSQLData()) {
     $col = "" if ($col eq $columns{''});
     $tbl = "" if ($tbl eq $columns{''});
     
+    # account for the fact that names may start with '_' or '.'.  Change this 
+    # so the template doesn't hide hash elements with those keys
+    $row =~ s/^([._])/ $1/;
+    $col =~ s/^([._])/ $1/;
+    $tbl =~ s/^([._])/ $1/;
+
     $data{$tbl}{$col}{$row}++;
     $names{"col"}{$col}++;
     $names{"row"}{$row}++;