check_bug_status check_smtp_auth check_theschwartz_available
check_maxattachmentsize check_email
check_comment_taggers_group
+ get_all_group_names
);
# Checking functions for the various values
return check_group($group_name);
}
+sub get_all_group_names {
+ return [
+ '',
+ map { $_->name } Bugzilla::Group->get_all,
+ ];
+}
+
# OK, here are the parameter definitions themselves.
#
# Each definition is a hash with keys:
{
name => 'chartgroup',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
{
name => 'insidergroup',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => '',
checker => \&check_group
},
{
name => 'timetrackinggroup',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
{
name => 'querysharegroup',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_group
},
{
name => 'comment_taggers_group',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_comment_taggers_group
},
{
name => 'debug_group',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'admin',
checker => \&check_group
},
return @param_list;
}
-sub _get_all_group_names {
- my @group_names = map { $_->name } Bugzilla::Group->get_all;
- unshift( @group_names, '' );
- return \@group_names;
-}
+
1;
{
name => 'antispam_spammer_exclude_group',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'canconfirm',
checker => \&check_group
},
return @param_list;
}
-sub _get_all_group_names {
- my @group_names = map {$_->name} Bugzilla::Group->get_all;
- unshift(@group_names, '');
- return \@group_names;
-}
-
1;
use Bugzilla::Bug;
use Bugzilla::BugMail;
-use Bugzilla::Config::Common qw(check_group);
+use Bugzilla::Config::Common qw(check_group get_all_group_names);
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Field;
push @{ $args->{panels}->{groupsecurity}->{params} }, {
name => 'delete_comments_group',
type => 's',
- choices => \&Bugzilla::Config::GroupSecurity::_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'admin',
checker => \&check_group
};
push @{ $args->{panels}->{groupsecurity}->{params} }, {
name => 'edit_comments_group',
type => 's',
- choices => \&Bugzilla::Config::GroupSecurity::_get_all_group_names,
+ choices => \&get_all_group_names,
default => 'admin',
checker => \&check_group
};
{
name => 'restrict_comments_group',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => '',
checker => \&check_group
},
{
name => 'restrict_comments_enable_group',
type => 's',
- choices => \&_get_all_group_names,
+ choices => \&get_all_group_names,
default => '',
checker => \&check_group
},
return @param_list;
}
-sub _get_all_group_names {
- my @group_names = map {$_->name} Bugzilla::Group->get_all;
- unshift(@group_names, '');
- return \@group_names;
-}
-
1;