]> 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:25:54 +0000 (06:25 +0000)
committerjocuri%softhome.net <>
Mon, 25 Oct 2004 06:25:54 +0000 (06:25 +0000)
report.cgi

index fac2f0e7577bc5346b87fc8087f2afb83351c323..63a87d0e4d6f28c96caaa54f52b9f0fe6a04f04d 100755 (executable)
@@ -174,6 +174,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}++;