Commit 704d78ca authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 342861: Cannot upgrade from any version before 2.17.1 - Patch by Frédéric…

Bug 342861: Cannot upgrade from any version before 2.17.1 - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
parent 733c808d
...@@ -41,8 +41,6 @@ $Bugzilla::Config::GroupSecurity::sortkey = "07"; ...@@ -41,8 +41,6 @@ $Bugzilla::Config::GroupSecurity::sortkey = "07";
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
my @group_names = map {$_->name} Bugzilla::Group::get_all_groups();
my @param_list = ( my @param_list = (
{ {
name => 'makeproductgroups', name => 'makeproductgroups',
...@@ -59,7 +57,7 @@ sub get_param_list { ...@@ -59,7 +57,7 @@ sub get_param_list {
{ {
name => 'chartgroup', name => 'chartgroup',
type => 's', type => 's',
choices => \@group_names, choices => \&_get_all_group_names,
default => 'editbugs', default => 'editbugs',
checker => \&check_group checker => \&check_group
}, },
...@@ -67,7 +65,7 @@ sub get_param_list { ...@@ -67,7 +65,7 @@ sub get_param_list {
{ {
name => 'insidergroup', name => 'insidergroup',
type => 's', type => 's',
choices => \@group_names, choices => \&_get_all_group_names,
default => '', default => '',
checker => \&check_group checker => \&check_group
}, },
...@@ -75,7 +73,7 @@ sub get_param_list { ...@@ -75,7 +73,7 @@ sub get_param_list {
{ {
name => 'timetrackinggroup', name => 'timetrackinggroup',
type => 's', type => 's',
choices => \@group_names, choices => \&_get_all_group_names,
default => 'editbugs', default => 'editbugs',
checker => \&check_group checker => \&check_group
}, },
...@@ -94,4 +92,8 @@ sub get_param_list { ...@@ -94,4 +92,8 @@ sub get_param_list {
return @param_list; return @param_list;
} }
sub _get_all_group_names {
my @group_names = map {$_->name} Bugzilla::Group::get_all_groups();
return \@group_names;
}
1; 1;
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