diff options
author | lpsolit%gmail.com <> | 2005-08-30 23:39:05 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-30 23:39:05 +0000 |
commit | 94b607da55ba701e1488a2654a9452acb7ad729b (patch) | |
tree | 334b5feb35f01a36d9f023563ab570f0f80039d4 /editgroups.cgi | |
parent | Bug 306364: SQL crash when moving a bug to another product (regression) - Pat... (diff) | |
download | bugzilla-94b607da55ba701e1488a2654a9452acb7ad729b.tar.gz bugzilla-94b607da55ba701e1488a2654a9452acb7ad729b.tar.bz2 bugzilla-94b607da55ba701e1488a2654a9452acb7ad729b.zip |
Bug 306271: Group.pm needs a get_all_groups() routine - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=myk
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-x | editgroups.cgi | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/editgroups.cgi b/editgroups.cgi index 62519fc54..f032da728 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -32,6 +32,7 @@ use lib "."; use Bugzilla; use Bugzilla::Constants; use Bugzilla::User; +use Bugzilla::Group; require "globals.pl"; my $cgi = Bugzilla->cgi; @@ -146,33 +147,12 @@ sub CheckGroupRegexp { # If no action is specified, get a list of all groups available. unless ($action) { - my @groups; - - my $group_list = - $dbh->selectall_arrayref('SELECT id, name, description, - userregexp, isactive, isbuggroup - FROM groups - ORDER BY isbuggroup, name'); - - foreach (@$group_list) { - my ($id, $name, $description, $regexp, $isactive, $isbuggroup) = @$_; - my $group = {}; - $group->{'id'} = $id; - $group->{'name'} = $name; - $group->{'description'} = $description; - $group->{'regexp'} = $regexp; - $group->{'isactive'} = $isactive; - $group->{'isbuggroup'} = $isbuggroup; - - push(@groups, $group); - } - + my @groups = Bugzilla::Group::get_all_groups(); $vars->{'groups'} = \@groups; print $cgi->header(); $template->process("admin/groups/list.html.tmpl", $vars) || ThrowTemplateError($template->error()); - exit; } |