summaryrefslogtreecommitdiffstats
path: root/defparams.pl
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-03-09 11:33:58 +0100
committerterry%netscape.com <>1999-03-09 11:33:58 +0100
commit0454e22cff08db09ab097132341f03f996b3a8a8 (patch)
tree976353fad315239614a14fe1201624f50fa72351 /defparams.pl
parent2ad64f0e999e4110714f8727aff649f02630be02 (diff)
downloadbugzilla-0454e22cff08db09ab097132341f03f996b3a8a8.tar.gz
bugzilla-0454e22cff08db09ab097132341f03f996b3a8a8.tar.xz
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.
Diffstat (limited to 'defparams.pl')
-rw-r--r--defparams.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/defparams.pl b/defparams.pl
index cfb41fbae..d7b2e5a46 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",