summaryrefslogtreecommitdiffstats
path: root/defparams.pl
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-09-25 05:41:30 +0200
committerkiko%async.com.br <>2004-09-25 05:41:30 +0200
commit60ac8ceed5bfca092dbd26be6a6e23a891efe1aa (patch)
tree95251312b647461645bc8ec313acbf5636cb6a0e /defparams.pl
parentda7ecb070a05a1b91b63a931bc0c4e9d288b616b (diff)
downloadbugzilla-60ac8ceed5bfca092dbd26be6a6e23a891efe1aa.tar.gz
bugzilla-60ac8ceed5bfca092dbd26be6a6e23a891efe1aa.tar.xz
Landing fix for bug 153811: default severity should be parametrized.
r,a=myk.
Diffstat (limited to 'defparams.pl')
-rw-r--r--defparams.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/defparams.pl b/defparams.pl
index ed6e6a0c7..365bb7e34 100644
--- a/defparams.pl
+++ b/defparams.pl
@@ -66,6 +66,16 @@ sub check_priority {
return "";
}
+sub check_severity {
+ my ($value) = (@_);
+ &::GetVersionTable();
+ if (lsearch(\@::legal_severity, $value) < 0) {
+ return "Must be a legal severity value: one of " .
+ join(", ", @::legal_severity);
+ }
+ return "";
+}
+
sub check_platform {
my ($value) = (@_);
&::GetVersionTable();
@@ -761,6 +771,14 @@ You will get this message once a day until you\'ve dealt with these bugs!
},
{
+ name => 'defaultseverity',
+ desc => 'This is the severity that newly entered bugs are set to.',
+ type => 't',
+ default => 'normal',
+ checker => \&check_severity
+ },
+
+ {
name => 'defaultplatform',
desc => 'This is the platform that is preselected on the bug '.
'entry form.<br>'.