From: terry%mozilla.org <> Date: Sat, 26 Feb 2000 02:55:41 +0000 (+0000) Subject: If there is only one project allowing new bugs, don't bother prompting X-Git-Tag: bugzilla-2.12~367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78dfe401dab8c769f8ff43f26ce0878fc9bcadaa;p=thirdparty%2Fbugzilla.git If there is only one project allowing new bugs, don't bother prompting for which project to use. --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 9161b4e2b9..0282f75c60 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -44,15 +44,24 @@ use vars @::legal_platform, if (!defined $::FORM{'product'}) { GetVersionTable(); - my @prodlist = keys %::versions; - if ($#prodlist != 0) { + my @prodlist; + foreach my $p (sort(keys %::versions)) { + if (defined $::proddesc{$p} && $::proddesc{$p} eq '0') { + # Special hack. If we stuffed a "0" into proddesc, that means + # that disallownew was set for this bug, and so we don't want + # to allow people to specify that product here. + next; + } + push(@prodlist, $p); + } + if (1 != @prodlist) { print "Content-type: text/html\n\n"; PutHeader("Enter Bug"); print "