From b86187ed7f8040b638ad4e90d87595e80026b64b Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Sun, 16 Jan 2000 01:25:51 +0000 Subject: If there is only one component, then select it for the user. --- enter_bug.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'enter_bug.cgi') 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); -- cgit v1.2.3-24-g4f1b