Commit aba0ad55 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Fix for bug 190611: Query page crashes if any product has no versions defined; r=kiko; a=justdave.

parent 4d5799ba
...@@ -250,6 +250,11 @@ foreach my $m (@::legal_target_milestone) { ...@@ -250,6 +250,11 @@ foreach my $m (@::legal_target_milestone) {
for (my $i = 0; $i < @products; ++$i) { for (my $i = 0; $i < @products; ++$i) {
my $p = $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. # Create hash to hold attributes for each product.
my %product = ( my %product = (
'name' => $p, 'name' => $p,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment