From: jocuri%softhome.net <> Date: Sat, 1 Nov 2003 03:06:59 +0000 (+0000) Subject: Fix for bug 190611: Query page crashes if any product has no versions defined; r... X-Git-Tag: bugzilla-2.17.5~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aba0ad551fab3f31935efa77073b8e6a9c6212de;p=thirdparty%2Fbugzilla.git Fix for bug 190611: Query page crashes if any product has no versions defined; r=kiko; a=justdave. --- diff --git a/query.cgi b/query.cgi index afdcf12156..80c6ec5d43 100755 --- a/query.cgi +++ b/query.cgi @@ -250,6 +250,11 @@ foreach my $m (@::legal_target_milestone) { for (my $i = 0; $i < @products; ++$i) { my $p = $products[$i]; + # Bug 190611: band-aid to avoid crashing with no versions defined + if (!defined ($::components{$p})) { + $::components{$p} = []; + } + # Create hash to hold attributes for each product. my %product = ( 'name' => $p,