summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2003-11-01 04:06:59 +0100
committerjocuri%softhome.net <>2003-11-01 04:06:59 +0100
commitaba0ad551fab3f31935efa77073b8e6a9c6212de (patch)
treed202d02db8efb02cac86051b0207dbdb012d0c74 /query.cgi
parent4d5799ba61bd0d5be1a7148c8b2fff6db1871a01 (diff)
downloadbugzilla-aba0ad551fab3f31935efa77073b8e6a9c6212de.tar.gz
bugzilla-aba0ad551fab3f31935efa77073b8e6a9c6212de.tar.xz
Fix for bug 190611: Query page crashes if any product has no versions defined; r=kiko; a=justdave.
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/query.cgi b/query.cgi
index afdcf1215..80c6ec5d4 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,