diff --git a/webtools/bugzilla/editflagtypes.cgi b/webtools/bugzilla/editflagtypes.cgi index a7c1a55415ce..ed3743a43d52 100755 --- a/webtools/bugzilla/editflagtypes.cgi +++ b/webtools/bugzilla/editflagtypes.cgi @@ -36,6 +36,7 @@ use Bugzilla; use Bugzilla::Constants; use Bugzilla::Flag; use Bugzilla::FlagType; +use Bugzilla::Group; use Bugzilla::User; use Bugzilla::Util; @@ -153,7 +154,9 @@ sub edit { $vars->{'type'} = { 'target_type' => scalar $cgi->param('target_type'), 'inclusions' => \%inclusions }; } - + # Get a list of groups available to restrict this flag type against. + my @groups = Bugzilla::Group::get_all_groups(); + $vars->{'groups'} = \@groups; # Return the appropriate HTTP response headers. print $cgi->header(); @@ -203,7 +206,8 @@ sub processCategoryChange { $vars->{'products'} = \@::legal_product; $vars->{'components'} = \@::legal_components; $vars->{'components_by_product'} = \%::components; - + my @groups = Bugzilla::Group::get_all_groups(); + $vars->{'groups'} = \@groups; $vars->{'action'} = $cgi->param('action'); my $type = {}; foreach my $key ($cgi->param()) { $type->{$key} = $cgi->param($key) } diff --git a/webtools/bugzilla/template/en/default/admin/flag-type/edit.html.tmpl b/webtools/bugzilla/template/en/default/admin/flag-type/edit.html.tmpl index 8491a1e7fa1b..6016fcfaef1c 100644 --- a/webtools/bugzilla/template/en/default/admin/flag-type/edit.html.tmpl +++ b/webtools/bugzilla/template/en/default/admin/flag-type/edit.html.tmpl @@ -195,8 +195,8 @@ Grant Group: the group allowed to grant/deny flags of this type - (to allow all users to grant/deny these flags, leave this empty)
- + (to allow all users to grant/deny these flags, select no group)
+ [% PROCESS select selname = "grant_gid" %] @@ -204,9 +204,9 @@ Request Group: if flags of this type are requestable, the group allowed to request them - (to allow all users to request these flags, leave this empty)
+ (to allow all users to request these flags, select no group)
Note that the request group alone has no effect if the grant group is not defined!
- + [% PROCESS select selname = "request_gid" %] @@ -225,3 +225,19 @@ [% PROCESS global/footer.html.tmpl %] + + +[%############################################################################%] +[%# Block for SELECT fields #%] +[%############################################################################%] + +[% BLOCK select %] + +[% END %] diff --git a/webtools/bugzilla/template/en/default/filterexceptions.pl b/webtools/bugzilla/template/en/default/filterexceptions.pl index 8ec9a3f3f1a6..5d70380ca134 100644 --- a/webtools/bugzilla/template/en/default/filterexceptions.pl +++ b/webtools/bugzilla/template/en/default/filterexceptions.pl @@ -563,6 +563,7 @@ 'type.sortkey || 1', 'typeLabelLowerPlural', 'typeLabelLowerSingular', + 'selname', ], 'admin/flag-type/list.html.tmpl' => [