зеркало из https://github.com/mozilla/pjs.git
Fix for bug 190611: Query page crashes if any product has no versions defined; r=kiko; a=justdave.
This commit is contained in:
Родитель
41e7f1734e
Коммит
5cfa7941cb
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче