summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-03-15 07:47:23 +0100
committerlpsolit%gmail.com <>2006-03-15 07:47:23 +0100
commite0946fe716dffb0852494c09c436b099fe593697 (patch)
tree833a1dc6b5649ea7c9181a808cd69e4c9b2a9521 /editproducts.cgi
parent577a3b3540fa2331e41f51cc2a2201ce902df289 (diff)
downloadbugzilla-e0946fe716dffb0852494c09c436b099fe593697.tar.gz
bugzilla-e0946fe716dffb0852494c09c436b099fe593697.tar.xz
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-xeditproducts.cgi4
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)