aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-10-25 06:25:54 +0000
committerjocuri%softhome.net <>2004-10-25 06:25:54 +0000
commitef6774469d8f5232bacb2266d469e57c63c3c689 (patch)
tree56e0e203f8e67c7b5833ad52f924b56a48b68f60 /report.cgi
parentBug 265731: multipart_start in the server-push handling code wasn't honoring ... (diff)
downloadbugzilla-ef6774469d8f5232bacb2266d469e57c63c3c689.tar.gz
bugzilla-ef6774469d8f5232bacb2266d469e57c63c3c689.tar.bz2
bugzilla-ef6774469d8f5232bacb2266d469e57c63c3c689.zip
Patch for bug 252137: tabular reports shouldn't be broken if a row/col/tbl header begins with an underscore; patch by Rob Siklos <rsiklos@adexa.com>; r=gerv, a=justdave.
Diffstat (limited to 'report.cgi')
-rwxr-xr-xreport.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/report.cgi b/report.cgi
index fac2f0e75..63a87d0e4 100755
--- a/report.cgi
+++ b/report.cgi
@@ -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}++;