From 3e1ef7ffc7d71a7ae1f0ced29ff446e063b421a0 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Tue, 18 Oct 2005 18:47:08 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20297593:=20defaultpriority,=20defaultsever?= =?UTF-8?q?ity,=20defaultplatform=20and=20defaultopsys=20parameters=20in?= =?UTF-8?q?=20editparams.cgi=20should=20be=20a=20dropdown=20menu=20-=20Pat?= =?UTF-8?q?ch=20by=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r?= =?UTF-8?q?=3Djoel=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@182474 18797224-902f-48f8-a5cc-f745e15eee43 --- .../bugzilla/Bugzilla/Config/BugFields.pm | 28 +++++++++++-------- mozilla/webtools/bugzilla/editparams.cgi | 2 ++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Config/BugFields.pm b/mozilla/webtools/bugzilla/Bugzilla/Config/BugFields.pm index 6c942568f40..17b79941d34 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Config/BugFields.pm +++ b/mozilla/webtools/bugzilla/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; } diff --git a/mozilla/webtools/bugzilla/editparams.cgi b/mozilla/webtools/bugzilla/editparams.cgi index 54d3a3a0a38..1aa52d81a4e 100755 --- a/mozilla/webtools/bugzilla/editparams.cgi +++ b/mozilla/webtools/bugzilla/editparams.cgi @@ -48,6 +48,8 @@ my $current_panel = $cgi->param('section') || 'core'; $current_panel =~ /^([A-Za-z0-9_-]+)$/; $current_panel = $1; +GetVersionTable(); + my $current_module; my @panels = (); foreach my $panel (@parampanels) {