From e0946fe716dffb0852494c09c436b099fe593697 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 15 Mar 2006 06:47:23 +0000 Subject: Bug 329022: Remove group_name_to_id in favor of creating Group objects - Patch by RĂ©mi Zara r=LpSolit a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editproducts.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editproducts.cgi') 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) -- cgit v1.2.3-24-g4f1b