From: terry%mozilla.org <> Date: Sun, 16 Jan 2000 01:25:51 +0000 (+0000) Subject: If there is only one component, then select it for the user. X-Git-Tag: bugzilla-2.12~466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b86187ed7f8040b638ad4e90d87595e80026b64b;p=thirdparty%2Fbugzilla.git If there is only one component, then select it for the user. --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 856b906cf7..57d9d0de3f 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);