diff options
author | terry%mozilla.org <> | 2000-01-16 02:25:51 +0100 |
---|---|---|
committer | terry%mozilla.org <> | 2000-01-16 02:25:51 +0100 |
commit | b86187ed7f8040b638ad4e90d87595e80026b64b (patch) | |
tree | 680ecd5bbe0a5270be42196752f4d3dd4da7a12a /enter_bug.cgi | |
parent | bce4b8e78e91aad71fb7c7bf9a6b5a085fe3e20a (diff) | |
download | bugzilla-b86187ed7f8040b638ad4e90d87595e80026b64b.tar.gz bugzilla-b86187ed7f8040b638ad4e90d87595e80026b64b.tar.xz |
If there is only one component, then select it for the user.
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); |