diff options
author | terry%netscape.com <> | 1999-03-04 03:16:23 +0100 |
---|---|---|
committer | terry%netscape.com <> | 1999-03-04 03:16:23 +0100 |
commit | 46655626506d638cdb263760f6b211d05a67bdb5 (patch) | |
tree | 62064930753331d0b359120fce3b5f75aa709520 /enter_bug.cgi | |
parent | ca5f816469362ee2364391979aec6c35cd246b3e (diff) | |
download | bugzilla-46655626506d638cdb263760f6b211d05a67bdb5.tar.gz bugzilla-46655626506d638cdb263760f6b211d05a67bdb5.tar.xz |
Added a "disallownew" field to the products table. If non-zero, then
don't let people file new bugs against this product. (This is for when a
product is retired, but you want to keep the bug reports around for posterity.)
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 54745e45b..550647726 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -43,6 +43,12 @@ if (!defined $::FORM{'product'}) { print "a bug.</H2>\n"; print "<table>"; foreach my $p (sort (@prodlist)) { + 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; + } print "<tr><th align=right valign=top><a href=\"enter_bug.cgi?product=" . url_quote($p) . "\"&$::buffer>$p</a>:</th>\n"; if (defined $::proddesc{$p}) { print "<td valign=top>$::proddesc{$p}</td>\n"; |