summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Product.pm
diff options
context:
space:
mode:
authorGervase Markham <gerv@mozilla.org>2015-03-19 20:40:07 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2015-03-19 20:45:19 +0100
commit5c8594a71d10d21019175dbc98e572671f80a095 (patch)
treee926fe496dd7eadbd24ccf2b8cb54bb69452bba6 /Bugzilla/Product.pm
parent42584a88aecb7430d6cef2c7b73779842ea5c80d (diff)
downloadbugzilla-5c8594a71d10d21019175dbc98e572671f80a095.tar.gz
bugzilla-5c8594a71d10d21019175dbc98e572671f80a095.tar.xz
Bug 1136745: Kill the makeproductgroups parameter
r=LpSolit a=glob
Diffstat (limited to 'Bugzilla/Product.pm')
-rw-r--r--Bugzilla/Product.pm22
1 files changed, 0 insertions, 22 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm
index 0c0cb458d..09ca61c69 100644
--- a/Bugzilla/Product.pm
+++ b/Bugzilla/Product.pm
@@ -96,7 +96,6 @@ sub create {
product => $product });
# Create groups and series for the new product, if requested.
- $product->_create_bug_group() if Bugzilla->params->{'makeproductgroups'};
$product->_create_series() if $create_series;
Bugzilla::Hook::process('product_end_of_create', { product => $product });
@@ -430,27 +429,6 @@ use constant is_default => 0;
#### Methods ####
###############################
-sub _create_bug_group {
- my $self = shift;
- my $dbh = Bugzilla->dbh;
-
- my $group_name = $self->name;
- while (new Bugzilla::Group({name => $group_name})) {
- $group_name .= '_';
- }
- my $group_description = get_text('bug_group_description', {product => $self});
-
- my $group = Bugzilla::Group->create({name => $group_name,
- description => $group_description,
- isbuggroup => 1});
-
- # Associate the new group and new product.
- $dbh->do('INSERT INTO group_control_map
- (group_id, product_id, membercontrol, othercontrol)
- VALUES (?, ?, ?, ?)',
- undef, ($group->id, $self->id, CONTROLMAPDEFAULT, CONTROLMAPNA));
-}
-
sub _create_series {
my $self = shift;