]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 297593: defaultpriority, defaultseverity, defaultplatform and defaultopsys parame...
authorlpsolit%gmail.com <>
Wed, 19 Oct 2005 01:47:08 +0000 (01:47 +0000)
committerlpsolit%gmail.com <>
Wed, 19 Oct 2005 01:47:08 +0000 (01:47 +0000)
Bugzilla/Config/BugFields.pm
editparams.cgi

index 6c942568f40de8795b0da2c7eab2eee0b6135f65..17b79941d34eb48229a37eeff2978ef6c3c33a96 100644 (file)
@@ -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;
 }
index 54d3a3a0a38d6cd64c0d3ac6c8237ebd68a4fac1..1aa52d81a4e278a190d1d7666f7da207979f3b9d 100755 (executable)
@@ -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) {