aboutsummaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2006-03-31 06:22:08 +0000
committerwurblzap%gmail.com <>2006-03-31 06:22:08 +0000
commit8f893f4d3aa0c635193b2f4240fc707bd31846ac (patch)
treea900fbbcafb6a2a71b9135f4786a484378560dee /query.cgi
parent9fc0498b4a52faf9b8651076091c9d2f5ad9ea49 (diff)
downloadbugs-8f893f4d3aa0c635193b2f4240fc707bd31846ac.tar
bugs-8f893f4d3aa0c635193b2f4240fc707bd31846ac.tar.gz
bugs-8f893f4d3aa0c635193b2f4240fc707bd31846ac.tar.bz2
bugs-8f893f4d3aa0c635193b2f4240fc707bd31846ac.tar.xz
bugs-8f893f4d3aa0c635193b2f4240fc707bd31846ac.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-xquery.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/query.cgi b/query.cgi
index bda05d7aa..7286a4b2e 100755
--- a/query.cgi
+++ b/query.cgi
@@ -314,9 +314,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);
}