From 6372dbd5d9f79a86989897a14647ef5a4b0363eb Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 19 Oct 2005 01:47:08 +0000 Subject: =?UTF-8?q?Bug=20297593:=20defaultpriority,=20defaultseverity,=20d?= =?UTF-8?q?efaultplatform=20and=20defaultopsys=20parameters=20in=20editpar?= =?UTF-8?q?ams.cgi=20should=20be=20a=20dropdown=20menu=20-=20Patch=20by=20?= =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Djoel=20?= =?UTF-8?q?a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Config/BugFields.pm | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Config/BugFields.pm b/Bugzilla/Config/BugFields.pm index 6c942568f..17b79941d 100644 --- a/Bugzilla/Config/BugFields.pm +++ b/Bugzilla/Config/BugFields.pm @@ -84,30 +84,34 @@ sub get_param_list { { name => 'defaultpriority', - type => 't', - default => 'P2', + type => 's', + choices => \@::legal_priority, + default => $::legal_priority[-1], checker => \&check_priority }, { name => 'defaultseverity', - type => 't', - default => 'normal', + type => 's', + choices => \@::legal_severity, + default => $::legal_severity[-1], checker => \&check_severity }, { - name => 'defaultplatform', - type => 't', - default => '', - checker => \&check_platform + name => 'defaultplatform', + type => 's', + choices => ['', @::legal_platform], + default => '', + checker => \&check_platform }, { - name => 'defaultopsys', - type => 't', - default => '', - checker => \&check_opsys + name => 'defaultopsys', + type => 's', + choices => ['', @::legal_opsys], + default => '', + checker => \&check_opsys } ); return @param_list; } -- cgit v1.2.1