summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config/GroupSecurity.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-07-06 08:31:45 +0200
committerlpsolit%gmail.com <>2006-07-06 08:31:45 +0200
commit704d78caa8d010776e646b3d3a26ef52e29cbbb4 (patch)
tree6cfb1aa7309149d87fd12508842d77d7956a4bbc /Bugzilla/Config/GroupSecurity.pm
parent733c808df91efa68fd2ff3da008b4dfc42420644 (diff)
downloadbugzilla-704d78caa8d010776e646b3d3a26ef52e29cbbb4.tar.gz
bugzilla-704d78caa8d010776e646b3d3a26ef52e29cbbb4.tar.xz
Bug 342861: Cannot upgrade from any version before 2.17.1 - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla/Config/GroupSecurity.pm')
-rw-r--r--Bugzilla/Config/GroupSecurity.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/Bugzilla/Config/GroupSecurity.pm b/Bugzilla/Config/GroupSecurity.pm
index 4e9e5f51c..08b202cda 100644
--- a/Bugzilla/Config/GroupSecurity.pm
+++ b/Bugzilla/Config/GroupSecurity.pm
@@ -41,8 +41,6 @@ $Bugzilla::Config::GroupSecurity::sortkey = "07";
sub get_param_list {
my $class = shift;
- my @group_names = map {$_->name} Bugzilla::Group::get_all_groups();
-
my @param_list = (
{
name => 'makeproductgroups',
@@ -59,7 +57,7 @@ sub get_param_list {
{
name => 'chartgroup',
type => 's',
- choices => \@group_names,
+ choices => \&_get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
@@ -67,7 +65,7 @@ sub get_param_list {
{
name => 'insidergroup',
type => 's',
- choices => \@group_names,
+ choices => \&_get_all_group_names,
default => '',
checker => \&check_group
},
@@ -75,7 +73,7 @@ sub get_param_list {
{
name => 'timetrackinggroup',
type => 's',
- choices => \@group_names,
+ choices => \&_get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
@@ -94,4 +92,8 @@ sub get_param_list {
return @param_list;
}
+sub _get_all_group_names {
+ my @group_names = map {$_->name} Bugzilla::Group::get_all_groups();
+ return \@group_names;
+}
1;