From: terry%netscape.com <> Date: Tue, 9 Mar 1999 10:33:58 +0000 (+0000) Subject: Added params to control how priorities are set in a new bug. You can X-Git-Tag: bugzilla-2.4~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0454e22cff08db09ab097132341f03f996b3a8a8;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/CHANGES b/CHANGES index a33713f440..06514c038d 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,12 @@ query the CVS tree. For example, 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 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.) diff --git a/bug_status.html b/bug_status.html index e351b414ad..a3706dffcd 100755 --- a/bug_status.html +++ b/bug_status.html @@ -129,7 +129,8 @@ This field describes the impact of a bug.

Priority

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:

@@ -204,6 +205,6 @@ status field appropriately.


Terry Weissman <terry@netscape.com>
-Last modified: Fri Jan 15 13:36:36 1999 +Last modified: Mon Mar 8 18:31:07 1999 diff --git a/defparams.pl b/defparams.pl index cfb41fbae0..d7b2e5a46c 100644 --- a/defparams.pl +++ b/defparams.pl @@ -243,6 +243,30 @@ DefParam("defaultquery", "t", "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", "Do you wish to use the Target Milestone field?", "b", diff --git a/enter_bug.cgi b/enter_bug.cgi index 550647726b..83792e851a 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -163,8 +163,10 @@ my $assign_element = GeneratePersonInput('assigned_to', 1, my $cc_element = GeneratePeopleInput('cc', formvalue('cc')); +my $priority = Param('defaultpriority'); + 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, formvalue('bug_severity', 'normal'), 0); my $platform_popup = make_popup('rep_platform', \@::legal_platform, @@ -203,9 +205,16 @@ print " - + "; +if (Param('letsubmitterchoosepriority')) { + print " Priority: - $priority_popup + $priority_popup"; +} else { + print ''; +} +print " Severity: $sev_popup