summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-03-08 07:22:47 +0100
committerterry%mozilla.org <>2000-03-08 07:22:47 +0100
commit684db15cb430b95feda05de480c95d55c02a1222 (patch)
tree3ac64fca3e1e09c3b8525a6c661cf3bb342b9a8c /enter_bug.cgi
parent39e31cfee09851c2ee47f59024c8da1713bd96d6 (diff)
downloadbugzilla-684db15cb430b95feda05de480c95d55c02a1222.tar.gz
bugzilla-684db15cb430b95feda05de480c95d55c02a1222.tar.xz
Patch by Dave Miller <dave@intrec.com> -- allow setting of
confidentiality when submitting a new bug.
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi40
1 files changed, 35 insertions, 5 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 292f25c60..d9c7ea24d 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -18,6 +18,7 @@
# Netscape Communications Corporation. All Rights Reserved.
#
# Contributor(s): Terry Weissman <terry@mozilla.org>
+# Dave Miller <dave@intrec.com>
########################################################################
@@ -35,11 +36,17 @@ use strict;
require "CGI.pl";
-# Shut up misguided -w warnings about "used only once":
-use vars @::legal_platform,
- @::legal_severity,
- @::legal_opsys,
- @::legal_priority;
+# Shut up misguided -w warnings about "used only once". "use vars" just
+# doesn't work for me.
+
+sub sillyness {
+ my $zz;
+ $zz = $::unconfirmedstate;
+ $zz = @::legal_opsys;
+ $zz = @::legal_platform;
+ $zz = @::legal_priority;
+ $zz = @::legal_severity;
+}
if (!defined $::FORM{'product'}) {
@@ -322,6 +329,29 @@ print "
"</TEXTAREA><BR></td>
</tr>
<tr>
+ <td></td><td colspan=5>
+";
+
+if ($::usergroupset ne '0') {
+ SendSQL("SELECT bit, description FROM groups " .
+ "WHERE bit & $::usergroupset != 0 " .
+ " AND isbuggroup != 0 ORDER BY bit");
+ while (MoreSQLData()) {
+ my ($bit, $description) = (FetchSQLData());
+ print BuildPulldown("bit-$bit",
+ [["0",
+ "People not in the \"$description\" group can see this bug"],
+ ["1",
+ "Only people in the \"$description\" group can see this bug"]],
+ 0);
+ print "<BR>\n";
+ }
+}
+
+print "
+ </td>
+ </tr>
+ <tr>
<td></td>
<td colspan=5>
<INPUT TYPE=\"submit\" VALUE=\" Commit \" ONCLICK=\"if (this.form.short_desc.value =='') { alert('Please enter a summary sentence for this bug.'); return false; }\">