diff options
author | David Lawrence <dkl@mozilla.com> | 2015-09-02 08:40:56 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-09-02 08:40:56 +0200 |
commit | 3d463f780fd2051751f276f71e27bb47e96dc2aa (patch) | |
tree | 26c7c6f2e745dc2ace396396ed03c7ef8c8f3b7e /editgroups.cgi | |
parent | e1c42c8fcdf74f5a810aae1384808b635cdc51a4 (diff) | |
download | bugzilla-3d463f780fd2051751f276f71e27bb47e96dc2aa.tar.gz bugzilla-3d463f780fd2051751f276f71e27bb47e96dc2aa.tar.xz |
Bug 1196618 - add support for group owners
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-x | editgroups.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editgroups.cgi b/editgroups.cgi index 086165bc8..52fa88b8c 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -213,6 +213,7 @@ if ($action eq 'new') { isactive => scalar $cgi->param('isactive'), icon_url => scalar $cgi->param('icon_url'), isbuggroup => 1, + owner_user_id => scalar $cgi->param('owner'), }); # Permit all existing products to use the new group if makeproductgroups. @@ -397,6 +398,10 @@ sub doGroupChanges { $group->set_icon_url($cgi->param('icon_url')); } + if (defined $cgi->param('owner')) { + $group->set_owner($cgi->param('owner')); + } + my $changes = $group->update(); my $sth_insert = $dbh->prepare('INSERT INTO group_group_map |