]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Added params to control how priorities are set in a new bug. You can
authorterry%netscape.com <>
Tue, 9 Mar 1999 10:33:58 +0000 (10:33 +0000)
committerterry%netscape.com <>
Tue, 9 Mar 1999 10:33:58 +0000 (10:33 +0000)
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.

CHANGES
bug_status.html
defparams.pl
enter_bug.cgi

diff --git a/CHANGES b/CHANGES
index a33713f4400205c508483ff2081b6c47e8a3bdf9..06514c038d4b585b4cb16b501c9b639bc625bbb1 100644 (file)
--- 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.)
index e351b414ad5f7dcf965e45776192d20db281f610..a3706dffcdb430ad4d09639e5e3a7511eba800c8 100755 (executable)
@@ -129,7 +129,8 @@ This field describes the impact of a bug.
 <a name="priority"><h2>Priority</h2></a>
 
 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>
@@ -204,6 +205,6 @@ status field appropriately.
 <hr>
 <address><a href="http://home.netscape.com/people/terry/">Terry Weissman &lt;terry@netscape.com&gt;</a></address>
 <!-- hhmts start -->
-Last modified: Fri Jan 15 13:36:36 1999
+Last modified: Mon Mar  8 18:31:07 1999
 <!-- hhmts end -->
 </body> </html>
index cfb41fbae0144ada048f0f8724c25fec23c09dee..d7b2e5a46cc2e41c48ce70cf68166bd657fc3d1e 100644 (file)
@@ -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",
index 550647726bcd31dafc5a2bfe21e1c3926e98e052..83792e851aa22b1ea15dc562a30d3d087d357e4a 100755 (executable)
@@ -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 "
     <td rowspan=3></td>
     <td></td>
   </TR>
-  <TR>
+  <TR>";
+if (Param('letsubmitterchoosepriority')) {
+    print "
     <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>$sev_popup</TD>
     <td></td>