diff options
author | tara%tequilarista.org <> | 2000-06-07 05:03:41 +0000 |
---|---|---|
committer | tara%tequilarista.org <> | 2000-06-07 05:03:41 +0000 |
commit | 8239b8ebaf464d64624cccb92ee6d08b9e604eed (patch) | |
tree | 35100e61adcf5888663889343100fe2db9db6f60 /enter_bug.cgi | |
parent | checking in 0.2.1 of the FAQ (diff) | |
download | bugzilla-8239b8ebaf464d64624cccb92ee6d08b9e604eed.tar.gz bugzilla-8239b8ebaf464d64624cccb92ee6d08b9e604eed.tar.bz2 bugzilla-8239b8ebaf464d64624cccb92ee6d08b9e604eed.zip |
Fix for bug #40987
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 086372d23..4dbda8c64 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -237,7 +237,15 @@ 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}}) { +if (0 == $::components{$product}) { + print "<H1>Permission Denied</H1>\n"; + print "Sorry. You need to have at least one component for this product\n"; + print "in order to create a new bug. Go to the \"Components\" link to create\n"; + print "a new component\n"; + print "<P>\n"; + PutFooter(); + exit; +} elsif (1 == @{$::components{$product}}) { # Only one component; just pick it. $::FORM{'component'} = $::components{$product}->[0]; } |