зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 87596: improper definition of $::components in globals.pl
Patch by Dave Miller <justdave@syndicomm.com> r= jake@acutex.net
This commit is contained in:
Родитель
5d61d5b1de
Коммит
1597e271bd
|
@ -237,7 +237,7 @@ my $platform_popup = make_popup('rep_platform', \@::legal_platform,
|
|||
pickplatform(), 0);
|
||||
my $opsys_popup = make_popup('op_sys', \@::legal_opsys, pickos(), 0);
|
||||
|
||||
if (0 == $::components{$product}) {
|
||||
if (0 == @{$::components{$product}}) {
|
||||
print "<H1>Permission Denied</H1>\n";
|
||||
print "Sorry. You need to have at least one component for this product\n";
|
||||
print "in order to create a new bug. Go to the \"Components\" link to create\n";
|
||||
|
|
|
@ -501,7 +501,7 @@ sub GenerateVersionTable {
|
|||
|
||||
foreach my $i (@list) {
|
||||
if (!defined $::components{$i}) {
|
||||
$::components{$i} = "";
|
||||
$::components{$i} = [];
|
||||
}
|
||||
}
|
||||
@::legal_versions = sort {uc($a) cmp uc($b)} keys(%varray);
|
||||
|
|
Загрузка…
Ссылка в новой задаче