diff options
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 856b906cf..57d9d0de3 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -192,6 +192,11 @@ my $platform_popup = make_popup('rep_platform', \@::legal_platform, pickplatform(), 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}, formvalue('component'), 1); |