Commit 0454e22c authored by terry%netscape.com's avatar terry%netscape.com

Added params to control how priorities are set in a new bug. You can

now choose whether to let submitters of new bugs choose a priority, or whether they should just accept the default priority (which is now no longer hardcoded to "P2", but is instead a param.) The default value of the params will cause the same behavior as before.
parent 2ad64f0e
...@@ -10,6 +10,12 @@ query the CVS tree. For example, ...@@ -10,6 +10,12 @@ query the CVS tree. For example,
will tell you what has been changed in the last week. will tell you what has been changed in the last week.
3/8/99 Added params to control how priorities are set in a new bug. You can
now choose whether to let submitters of new bugs choose a priority, or whether
they should just accept the default priority (which is now no longer hardcoded
to "P2", but is instead a param.) The default value of the params will cause
the same behavior as before.
3/3/99 Added a "disallownew" field to the products table. If non-zero, then 3/3/99 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 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.) product is retired, but you want to keep the bug reports around for posterity.)
......
...@@ -129,7 +129,8 @@ This field describes the impact of a bug. ...@@ -129,7 +129,8 @@ This field describes the impact of a bug.
<a name="priority"><h2>Priority</h2></a> <a name="priority"><h2>Priority</h2></a>
This field describes the importance and order in which a bug should be This field describes the importance and order in which a bug should be
fixed. The available priorities are: fixed. This field is utilized by the programmers/engineers to
prioritized their work to be done. The available priorities are:
<p> <p>
<p> <p>
...@@ -204,6 +205,6 @@ status field appropriately. ...@@ -204,6 +205,6 @@ status field appropriately.
<hr> <hr>
<address><a href="http://home.netscape.com/people/terry/">Terry Weissman &lt;terry@netscape.com&gt;</a></address> <address><a href="http://home.netscape.com/people/terry/">Terry Weissman &lt;terry@netscape.com&gt;</a></address>
<!-- hhmts start --> <!-- hhmts start -->
Last modified: Fri Jan 15 13:36:36 1999 Last modified: Mon Mar 8 18:31:07 1999
<!-- hhmts end --> <!-- hhmts end -->
</body> </html> </body> </html>
...@@ -243,6 +243,30 @@ DefParam("defaultquery", ...@@ -243,6 +243,30 @@ DefParam("defaultquery",
"t", "t",
"bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=Mozilla&order=%22Importance%22"); "bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=Mozilla&order=%22Importance%22");
DefParam("letsubmitterchoosepriority",
"If this is on, then people submitting bugs can choose an initial priority for that bug. If off, then all bugs initially have the default priority selected above.",
"b",
1);
sub check_priority {
my ($value) = (@_);
GetVersionTable();
if (lsearch(\@::legal_priority, $value) < 0) {
return "Must be a legal priority value: one of " .
join(", ", @::legal_priority);
}
return "";
}
DefParam("defaultpriority",
"This is the priority that newly entered bugs are set to.",
"t",
"P2",
\&check_priority);
DefParam("usetargetmilestone", DefParam("usetargetmilestone",
"Do you wish to use the Target Milestone field?", "Do you wish to use the Target Milestone field?",
"b", "b",
......
...@@ -163,8 +163,10 @@ my $assign_element = GeneratePersonInput('assigned_to', 1, ...@@ -163,8 +163,10 @@ my $assign_element = GeneratePersonInput('assigned_to', 1,
my $cc_element = GeneratePeopleInput('cc', formvalue('cc')); my $cc_element = GeneratePeopleInput('cc', formvalue('cc'));
my $priority = Param('defaultpriority');
my $priority_popup = make_popup('priority', \@::legal_priority, my $priority_popup = make_popup('priority', \@::legal_priority,
formvalue('priority', 'P2'), 0); formvalue('priority', $priority), 0);
my $sev_popup = make_popup('bug_severity', \@::legal_severity, my $sev_popup = make_popup('bug_severity', \@::legal_severity,
formvalue('bug_severity', 'normal'), 0); formvalue('bug_severity', 'normal'), 0);
my $platform_popup = make_popup('rep_platform', \@::legal_platform, my $platform_popup = make_popup('rep_platform', \@::legal_platform,
...@@ -203,9 +205,16 @@ print " ...@@ -203,9 +205,16 @@ print "
<td rowspan=3></td> <td rowspan=3></td>
<td></td> <td></td>
</TR> </TR>
<TR> <TR>";
if (Param('letsubmitterchoosepriority')) {
print "
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#priority\">Priority</A>:</B></TD> <TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#priority\">Priority</A>:</B></TD>
<TD>$priority_popup</TD> <TD>$priority_popup</TD>";
} else {
print '<INPUT TYPE=HIDDEN NAME=priority VALUE="' .
value_quote($priority) . '">';
}
print "
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#severity\">Severity</A>:</B></TD> <TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#severity\">Severity</A>:</B></TD>
<TD>$sev_popup</TD> <TD>$sev_popup</TD>
<td></td> <td></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment