sub get_param_list {
my $class = shift;
- my @group_names = map {$_->name} Bugzilla::Group::get_all_groups();
-
my @param_list = (
{
name => 'makeproductgroups',
{
name => 'chartgroup',
type => 's',
- choices => \@group_names,
+ choices => \&_get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
{
name => 'insidergroup',
type => 's',
- choices => \@group_names,
+ choices => \&_get_all_group_names,
default => '',
checker => \&check_group
},
{
name => 'timetrackinggroup',
type => 's',
- choices => \@group_names,
+ choices => \&_get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
return @param_list;
}
+sub _get_all_group_names {
+ my @group_names = map {$_->name} Bugzilla::Group::get_all_groups();
+ return \@group_names;
+}
1;