diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-09-07 17:04:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-07 17:04:07 +0200 |
commit | 946e9116c2a2a4ccbc44f657827087bf44ba295a (patch) | |
tree | c110b20d0f189946915d737180f78e835c27e9b1 /Bugzilla/Config/Common.pm | |
parent | 8feb55f32ccd688d2b51105f4d56985abf0baa93 (diff) | |
download | bugzilla-946e9116c2a2a4ccbc44f657827087bf44ba295a.tar.gz bugzilla-946e9116c2a2a4ccbc44f657827087bf44ba295a.tar.xz |
Bug 1397747 - Move _get_all_group_names to Bugzilla::Config::Common::_get_all_group_names, and remove copy-pasted code
Diffstat (limited to 'Bugzilla/Config/Common.pm')
-rw-r--r-- | Bugzilla/Config/Common.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index cbb030a9c..8b1a9da91 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -30,6 +30,7 @@ use base qw(Exporter); 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 @@ -345,6 +346,13 @@ sub check_comment_taggers_group { 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: |