diff options
author | lpsolit%gmail.com <> | 2006-03-15 06:47:23 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-03-15 06:47:23 +0000 |
commit | e0946fe716dffb0852494c09c436b099fe593697 (patch) | |
tree | 833a1dc6b5649ea7c9181a808cd69e4c9b2a9521 /editproducts.cgi | |
parent | Bug 311422: describecomponents.cgi and enter_bug.cgi need some cleanup - Patc... (diff) | |
download | bugzilla-e0946fe716dffb0852494c09c436b099fe593697.tar.gz bugzilla-e0946fe716dffb0852494c09c436b099fe593697.tar.bz2 bugzilla-e0946fe716dffb0852494c09c436b099fe593697.zip |
Bug 329022: Remove group_name_to_id in favor of creating Group objects - Patch by Rémi Zara <remi_zara@mac.com> r=LpSolit a=justdave
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-x | editproducts.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editproducts.cgi b/editproducts.cgi index 68e6bd42a..30b3d32a6 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -235,7 +235,7 @@ if ($action eq 'new') { if (Param("makeproductgroups")) { # Next we insert into the groups table my $productgroup = $product->name; - while (group_name_to_id($productgroup)) { + while (new Bugzilla::Group({name => $productgroup})) { $productgroup .= '_'; } my $group_description = "Access to bugs in the " . @@ -250,7 +250,7 @@ if ($action eq 'new') { # If we created a new group, give the "admin" group priviledges # initially. - my $admin = group_name_to_id('admin'); + my $admin = Bugzilla::Group->new({name => 'admin'})->id(); my $sth = $dbh->prepare('INSERT INTO group_group_map (member_id, grantor_id, grant_type) |