aboutsummaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2006-03-02 05:33:01 +0000
committermkanat%kerio.com <>2006-03-02 05:33:01 +0000
commit9fcdc67a551a089ebd926a560580e77c58c8ae21 (patch)
tree182d6cdc1d1c5c50ee13baed0fd7b333d7ce6316 /editproducts.cgi
parent877a6c19c0974eb7e51856b7a2314dbee6079893 (diff)
downloadbugs-9fcdc67a551a089ebd926a560580e77c58c8ae21.tar
bugs-9fcdc67a551a089ebd926a560580e77c58c8ae21.tar.gz
bugs-9fcdc67a551a089ebd926a560580e77c58c8ae21.tar.bz2
bugs-9fcdc67a551a089ebd926a560580e77c58c8ae21.tar.xz
bugs-9fcdc67a551a089ebd926a560580e77c58c8ae21.zip
Bug 328435: Move GroupNameToId into Bugzilla/Group.pm and eliminate GroupExists
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=justdave
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index 1101f3182..25bad900d 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -43,6 +43,7 @@ use Bugzilla::BugMail;
use Bugzilla::Product;
use Bugzilla::Classification;
use Bugzilla::Milestone;
+use Bugzilla::Group;
# Shut up misguided -w warnings about "used only once". "use vars" just
# doesn't work for me.
@@ -234,7 +235,7 @@ if ($action eq 'new') {
if (Param("makeproductgroups")) {
# Next we insert into the groups table
my $productgroup = $product->name;
- while (GroupExists($productgroup)) {
+ while (group_name_to_id($productgroup)) {
$productgroup .= '_';
}
my $group_description = "Access to bugs in the " .
@@ -249,7 +250,7 @@ if ($action eq 'new') {
# If we created a new group, give the "admin" group priviledges
# initially.
- my $admin = GroupNameToId('admin');
+ my $admin = group_name_to_id('admin');
my $sth = $dbh->prepare('INSERT INTO group_group_map
(member_id, grantor_id, grant_type)