From ef6774469d8f5232bacb2266d469e57c63c3c689 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Mon, 25 Oct 2004 06:25:54 +0000 Subject: Patch for bug 252137: tabular reports shouldn't be broken if a row/col/tbl header begins with an underscore; patch by Rob Siklos ; r=gerv, a=justdave. --- report.cgi | 6 ++++++ 1 file changed, 6 insertions(+) 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}++; -- cgit v1.2.3-24-g4f1b