]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
If there is only one component, then select it for the user.
authorterry%mozilla.org <>
Sun, 16 Jan 2000 01:25:51 +0000 (01:25 +0000)
committerterry%mozilla.org <>
Sun, 16 Jan 2000 01:25:51 +0000 (01:25 +0000)
enter_bug.cgi

index 856b906cf7e367027fd191fdfa240f26e3ed8f08..57d9d0de3fd4daf3368562b818b275cdd5531cfc 100755 (executable)
@@ -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);