From f18f666c70fdc3bcc7d942ce25427c1ac9258b50 Mon Sep 17 00:00:00 2001
From: "jake%acutex.net" <>
Date: Fri, 15 Jun 2001 03:00:03 +0000
Subject: Backing out previous changes as there was a better patch already
attached to a different bug
---
enter_bug.cgi | 37 +++++++++----------------------------
1 file changed, 9 insertions(+), 28 deletions(-)
(limited to 'enter_bug.cgi')
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 2df9ca247..493dcadd3 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 .= "$p: | \n";
-
+ print "
---|
$p: | \n";
if (defined $::proddesc{$p}) {
- $tableContents .= "$::proddesc{$p} | \n";
+ print "$::proddesc{$p} | \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 "\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];
}
--
cgit v1.2.3-24-g4f1b