summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi5
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);