]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug #40987
authortara%tequilarista.org <>
Wed, 7 Jun 2000 05:03:41 +0000 (05:03 +0000)
committertara%tequilarista.org <>
Wed, 7 Jun 2000 05:03:41 +0000 (05:03 +0000)
enter_bug.cgi

index 086372d237ebccfde904925ed726a9e1b26a64a3..4dbda8c648e457418d32fe87cf167d73b40ad6f7 100755 (executable)
@@ -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];
 }