Major spankage. Added a new state, UNCONFIRMED. Added new groups,

"editbugs" and "canconfirm".  People without these states are now much
more limited in what they can do.

For backwards compatability, by default all users will have the
editbugs and canconfirm bits on them.  Installing this changes as is
should only have one major visible effect -- an UNCONFIRMED state
will appear in the query page.  But no bugs will become in that state,
until you tweak some of the new voting-related parameters you'll find
when editing products.


git-svn-id: svn://10.0.0.236/trunk@61184 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
terry%mozilla.org
2000-02-17 05:15:23 +00:00
parent 5121c41961
commit 86a0cf8cc4
16 changed files with 940 additions and 184 deletions

View File

@@ -120,12 +120,32 @@ if (Param("useqacontact")) {
if (exists $::FORM{'bug_status'}) {
if (!UserInGroup("canedit") && !UserInGroup("canconfirm")) {
delete $::FORM{'bug_status'};
}
}
if (!exists $::FORM{'bug_status'}) {
$::FORM{'bug_status'} = $::unconfirmedstate;
SendSQL("SELECT votestoconfirm FROM products WHERE product = " .
SqlQuote($::FORM{'product'}));
if (!FetchOneColumn()) {
$::FORM{'bug_status'} = "NEW";
}
}
my @used_fields;
foreach my $f (@bug_fields) {
if (exists $::FORM{$f}) {
push (@used_fields, $f);
}
}
if (exists $::FORM{'bug_status'} && $::FORM{'bug_status'} ne $::unconfirmedstate) {
push(@used_fields, "everconfirmed");
$::FORM{'everconfirmed'} = 1;
}
my $query = "insert into bugs (\n" . join(",\n", @used_fields) . ",
creation_ts )