From b74f46a8039ebb62472a48a50139f696e6b6d0c7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 21 Jun 2006 08:05:59 +0000 Subject: Bug 324783: The chartgroup, insidergroup and timetrackinggroup groups in editparams.cgi should be listed in a dropdown menu - Patch by Frédéric Buclin r=Colin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Config/GroupSecurity.pm | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'Bugzilla/Config/GroupSecurity.pm') diff --git a/Bugzilla/Config/GroupSecurity.pm b/Bugzilla/Config/GroupSecurity.pm index f1f1ac2a6..4e9e5f51c 100644 --- a/Bugzilla/Config/GroupSecurity.pm +++ b/Bugzilla/Config/GroupSecurity.pm @@ -34,11 +34,15 @@ package Bugzilla::Config::GroupSecurity; use strict; use Bugzilla::Config::Common; +use Bugzilla::Group; $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', @@ -54,22 +58,28 @@ sub get_param_list { { name => 'chartgroup', - type => 't', - default => 'editbugs' + type => 's', + choices => \@group_names, + default => 'editbugs', + checker => \&check_group }, - + { name => 'insidergroup', - type => 't', - default => '' + type => 's', + choices => \@group_names, + default => '', + checker => \&check_group }, { name => 'timetrackinggroup', - type => 't', - default => 'editbugs' + type => 's', + choices => \@group_names, + default => 'editbugs', + checker => \&check_group }, - + { name => 'usevisibilitygroups', type => 'b', -- cgit v1.2.3-24-g4f1b