Commit 6372dbd5 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 297593: defaultpriority, defaultseverity, defaultplatform and defaultopsys…

Bug 297593: defaultpriority, defaultseverity, defaultplatform and defaultopsys parameters in editparams.cgi should be a dropdown menu - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=justdave
parent 8d67e86a
...@@ -84,28 +84,32 @@ sub get_param_list { ...@@ -84,28 +84,32 @@ sub get_param_list {
{ {
name => 'defaultpriority', name => 'defaultpriority',
type => 't', type => 's',
default => 'P2', choices => \@::legal_priority,
default => $::legal_priority[-1],
checker => \&check_priority checker => \&check_priority
}, },
{ {
name => 'defaultseverity', name => 'defaultseverity',
type => 't', type => 's',
default => 'normal', choices => \@::legal_severity,
default => $::legal_severity[-1],
checker => \&check_severity checker => \&check_severity
}, },
{ {
name => 'defaultplatform', name => 'defaultplatform',
type => 't', type => 's',
choices => ['', @::legal_platform],
default => '', default => '',
checker => \&check_platform checker => \&check_platform
}, },
{ {
name => 'defaultopsys', name => 'defaultopsys',
type => 't', type => 's',
choices => ['', @::legal_opsys],
default => '', default => '',
checker => \&check_opsys checker => \&check_opsys
} ); } );
......
...@@ -48,6 +48,8 @@ my $current_panel = $cgi->param('section') || 'core'; ...@@ -48,6 +48,8 @@ my $current_panel = $cgi->param('section') || 'core';
$current_panel =~ /^([A-Za-z0-9_-]+)$/; $current_panel =~ /^([A-Za-z0-9_-]+)$/;
$current_panel = $1; $current_panel = $1;
GetVersionTable();
my $current_module; my $current_module;
my @panels = (); my @panels = ();
foreach my $panel (@parampanels) { foreach my $panel (@parampanels) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment