diff options
author | lpsolit%gmail.com <> | 2005-08-30 23:47:25 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-30 23:47:25 +0000 |
commit | 29a562e5c22fd8437610edb3ceafc8c93ccfd610 (patch) | |
tree | 18fe30397801f4a9a2e111d6abba55a98ff2da1e /editflagtypes.cgi | |
parent | 94b607da55ba701e1488a2654a9452acb7ad729b (diff) | |
download | bugs-29a562e5c22fd8437610edb3ceafc8c93ccfd610.tar bugs-29a562e5c22fd8437610edb3ceafc8c93ccfd610.tar.gz bugs-29a562e5c22fd8437610edb3ceafc8c93ccfd610.tar.bz2 bugs-29a562e5c22fd8437610edb3ceafc8c93ccfd610.tar.xz bugs-29a562e5c22fd8437610edb3ceafc8c93ccfd610.zip |
Bug 275608: The group selection when editing flag types should be a listbox with (no group) meaning no restriction - Patch by Frédéric Buclin <LpSolit@gmail.com> r=GavinS a=myk
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-x | editflagtypes.cgi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi index a7c1a5541..ed3743a43 100755 --- a/editflagtypes.cgi +++ b/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) } |