From: lpsolit%gmail.com <> Date: Mon, 22 Aug 2005 03:46:56 +0000 (+0000) Subject: Bug 302202: "Odd number of elements in anonymous hash" error when loading query.cgi... X-Git-Tag: bugzilla-2.20~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf6f462c9d4ae024c451a4b81e471296a7a37b47;p=thirdparty%2Fbugzilla.git Bug 302202: "Odd number of elements in anonymous hash" error when loading query.cgi - Patch by Rob Siklos r=wicked a=justdave --- diff --git a/query.cgi b/query.cgi index fa4a791f8d..f05a8b567e 100755 --- a/query.cgi +++ b/query.cgi @@ -383,8 +383,8 @@ for (my $chart = 0; $cgi->param("field$chart-0-0"); $chart++) { my @cols; for (my $col = 0; $cgi->param("field$chart-$row-$col"); $col++) { push(@cols, { field => $cgi->param("field$chart-$row-$col"), - type => $cgi->param("type$chart-$row-$col"), - value => $cgi->param("value$chart-$row-$col") }); + type => $cgi->param("type$chart-$row-$col") || 'noop', + value => $cgi->param("value$chart-$row-$col") || '' }); } push(@rows, \@cols); }