Commit b86187ed authored by terry%mozilla.org's avatar terry%mozilla.org

If there is only one component, then select it for the user.

parent bce4b8e7
...@@ -192,6 +192,11 @@ my $platform_popup = make_popup('rep_platform', \@::legal_platform, ...@@ -192,6 +192,11 @@ my $platform_popup = make_popup('rep_platform', \@::legal_platform,
pickplatform(), 0); pickplatform(), 0);
my $opsys_popup = make_popup('op_sys', \@::legal_opsys, pickos(), 0); my $opsys_popup = make_popup('op_sys', \@::legal_opsys, pickos(), 0);
if (1 == @{$::components{$product}}) {
# Only one component; just pick it.
$::FORM{'component'} = $::components{$product}->[0];
}
my $component_popup = make_popup('component', $::components{$product}, my $component_popup = make_popup('component', $::components{$product},
formvalue('component'), 1); formvalue('component'), 1);
......
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