From: jocuri%softhome.net <> Date: Mon, 25 Oct 2004 06:26:09 +0000 (+0000) Subject: Patch for bug 252137: tabular reports shouldn't be broken if a row/col/tbl header... X-Git-Tag: bugzilla-2.18rc3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88f97b5068f45f7b40acd3f73843eb2e25c26294;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/report.cgi b/report.cgi index 66060723d0..9a06dee5e9 100755 --- a/report.cgi +++ b/report.cgi @@ -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}++;