From: tara%tequilarista.org <> Date: Wed, 7 Jun 2000 05:03:41 +0000 (+0000) Subject: Fix for bug #40987 X-Git-Tag: bugzilla-2.12~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8239b8ebaf464d64624cccb92ee6d08b9e604eed;p=thirdparty%2Fbugzilla.git Fix for bug #40987 --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 086372d237..4dbda8c648 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 "

Permission Denied

\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 "

\n"; + PutFooter(); + exit; +} elsif (1 == @{$::components{$product}}) { # Only one component; just pick it. $::FORM{'component'} = $::components{$product}->[0]; }