From 0454e22cff08db09ab097132341f03f996b3a8a8 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Tue, 9 Mar 1999 10:33:58 +0000 Subject: 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. --- defparams.pl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'defparams.pl') 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", -- cgit v1.2.3-24-g4f1b