diff options
author | wurblzap%gmail.com <> | 2006-03-31 06:23:06 +0000 |
---|---|---|
committer | wurblzap%gmail.com <> | 2006-03-31 06:23:06 +0000 |
commit | 90a0410767f7c4a10d05b5b6ba44b2ad638e6eaa (patch) | |
tree | 4c76dd97afd85644d0bc794c05da1d20e97305db /query.cgi | |
parent | Bug 329390 Incorrect English in "You can't make [% terms.abug %] blocked or d... (diff) | |
download | bugzilla-90a0410767f7c4a10d05b5b6ba44b2ad638e6eaa.tar.gz bugzilla-90a0410767f7c4a10d05b5b6ba44b2ad638e6eaa.tar.bz2 bugzilla-90a0410767f7c4a10d05b5b6ba44b2ad638e6eaa.zip |
Bug 306695: Boolean charts forgets "0" values.
Patch by Marc Schumann <wurblzap@gmail.com>,
r=LpSolit, bugreport, a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -376,9 +376,13 @@ for (my $chart = 0; $cgi->param("field$chart-0-0"); $chart++) { for (my $row = 0; $cgi->param("field$chart-$row-0"); $row++) { my @cols; for (my $col = 0; $cgi->param("field$chart-$row-$col"); $col++) { + my $value = $cgi->param("value$chart-$row-$col"); + if (!defined($value)) { + $value = ''; + } push(@cols, { field => $cgi->param("field$chart-$row-$col"), type => $cgi->param("type$chart-$row-$col") || 'noop', - value => $cgi->param("value$chart-$row-$col") || '' }); + value => $value }); } push(@rows, \@cols); } |