summaryrefslogtreecommitdiffstats
path: root/extensions/RestrictComments
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/RestrictComments')
-rw-r--r--extensions/RestrictComments/lib/Config.pm10
1 files changed, 2 insertions, 8 deletions
diff --git a/extensions/RestrictComments/lib/Config.pm b/extensions/RestrictComments/lib/Config.pm
index 55cf11187..e5dbc518c 100644
--- a/extensions/RestrictComments/lib/Config.pm
+++ b/extensions/RestrictComments/lib/Config.pm
@@ -23,14 +23,14 @@ sub get_param_list {
{
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
},
@@ -39,10 +39,4 @@ sub get_param_list {
return @param_list;
}
-sub _get_all_group_names {
- my @group_names = map {$_->name} Bugzilla::Group->get_all;
- unshift(@group_names, '');
- return \@group_names;
-}
-
1;