From: jake%acutex.net <> Date: Fri, 15 Jun 2001 03:00:03 +0000 (+0000) Subject: Backing out previous changes as there was a better patch already attached to a differ... X-Git-Tag: bugzilla-2.14~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f18f666c70fdc3bcc7d942ce25427c1ac9258b50;p=thirdparty%2Fbugzilla.git Backing out previous changes as there was a better patch already attached to a different bug --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 2df9ca247e..493dcadd38 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -79,13 +79,13 @@ if (!defined $::FORM{'product'}) { } push(@prodlist, $p); } - if (1 != @prodlist) { print "Content-type: text/html\n\n"; - - my $bProdFlag = 0; - my $tableContents = ""; - + PutHeader("Enter Bug"); + + print "

First, you must pick a product on which to enter\n"; + print "a bug.

\n"; + print ""; foreach my $p (@prodlist) { if (defined $::proddesc{$p} && $::proddesc{$p} eq '0') { # Special hack. If we stuffed a "0" into proddesc, that means @@ -93,7 +93,6 @@ if (!defined $::FORM{'product'}) { # to allow people to specify that product here. next; } - if(Param("usebuggroupsentry") && GroupExists($p) && !UserInGroup($p)) { @@ -102,34 +101,16 @@ if (!defined $::FORM{'product'}) { # group, we don't want to include that product in this list. next; } - - $bProdFlag = 1; - $tableContents .= "\n"; - + print "\n"; if (defined $::proddesc{$p}) { - $tableContents .= "\n"; + print "\n"; } - - $tableContents .= ""; + print ""; } - - # display sensible message if no products were found for the user to enter bugs against - if ($bProdFlag) { - PutHeader("Enter Bug"); - print "

First, you must pick a product on which to enter a bug.

\n"; - print "
$p:
$p:$::proddesc{$p}$::proddesc{$p}
\n"; - print $tableContents; - print "
\n"; - } else { - PutHeader("Permission Denied"); - print "Sorry. There are no products for which you may enter bugs\n"; - print "

\n"; - } - + print "\n"; PutFooter(); exit; } - $::FORM{'product'} = $prodlist[0]; }