diff options
author | terry%mozilla.org <> | 2000-02-17 13:15:20 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 2000-02-17 13:15:20 +0000 |
commit | e9a32920f47ce268e3835b12abccc9fb2e1dd8c6 (patch) | |
tree | 8f1154745b807d4dee480e7b5c22d3ccb4b27f07 /enter_bug.cgi | |
parent | 3c0ea11d42d7942f36e1704afefc55655811db5d (diff) | |
download | bugs-e9a32920f47ce268e3835b12abccc9fb2e1dd8c6.tar bugs-e9a32920f47ce268e3835b12abccc9fb2e1dd8c6.tar.gz bugs-e9a32920f47ce268e3835b12abccc9fb2e1dd8c6.tar.bz2 bugs-e9a32920f47ce268e3835b12abccc9fb2e1dd8c6.tar.xz bugs-e9a32920f47ce268e3835b12abccc9fb2e1dd8c6.zip |
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.
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 57d9d0de3..45ca19de5 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -204,7 +204,6 @@ PutHeader ("Enter Bug","Enter Bug","This page lets you enter a new bug into Bugz print " <FORM METHOD=POST ACTION=\"post_bug.cgi\"> -<INPUT TYPE=HIDDEN NAME=bug_status VALUE=NEW> <INPUT TYPE=HIDDEN NAME=reporter VALUE=\"$::COOKIE{'Bugzilla_login'}\"> <INPUT TYPE=HIDDEN NAME=product VALUE=\"" . value_quote($product) . "\"> <TABLE CELLSPACING=2 CELLPADDING=0 BORDER=0>"; @@ -260,6 +259,26 @@ print " <td></td> </TR> <tr><td> <td> <td> <td> <td> <td> </tr> +"; + +if (UserInGroup("canedit") || UserInGroup("canconfirm")) { + SendSQL("SELECT votestoconfirm FROM products WHERE product = " . + SqlQuote($product)); + if (FetchOneColumn()) { + print qq{ + <TR> + <TD ALIGN="right"><B><A HREF="bug_status.html#status">Initial state:</B></A></TD> + <TD COLSPAN="5"> +}; + print BuildPulldown("bug_status", + [[$::unconfirmedstate], ["NEW"]], + "NEW"); + print "</TD></TR>"; + } +} + + +print " <tr> <TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#assigned_to\">Assigned To:</A></B></TD> <TD colspan=5>$assign_element |