diff --git a/webtools/bugzilla/enter_bug.cgi b/webtools/bugzilla/enter_bug.cgi index 493dcadd38a..62c7fc49cae 100755 --- a/webtools/bugzilla/enter_bug.cgi +++ b/webtools/bugzilla/enter_bug.cgi @@ -79,7 +79,18 @@ if (!defined $::FORM{'product'}) { } push(@prodlist, $p); } - if (1 != @prodlist) { + if (0 == @prodlist) { + print "Content-type: text/html\n\n"; + PutHeader("No Products Available"); + + print "Either no products have been defined to enter bugs against "; + print "or you have not been given access to any. Please email "; + print ""; + print Param("maintainer") . " if you feel this is in error.
\n"; + + PutFooter(); + exit; + } elsif (1 < @prodlist) { print "Content-type: text/html\n\n"; PutHeader("Enter Bug"); @@ -87,20 +98,9 @@ if (!defined $::FORM{'product'}) { print "a bug.\n"; print "
$p: | \n"; if (defined $::proddesc{$p}) { print "$::proddesc{$p} | \n";
---|