summaryrefslogtreecommitdiffstats
path: root/qa/config/generate_test_data.pl
diff options
context:
space:
mode:
Diffstat (limited to 'qa/config/generate_test_data.pl')
-rw-r--r--qa/config/generate_test_data.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/config/generate_test_data.pl b/qa/config/generate_test_data.pl
index d0281d181..4891d30bc 100644
--- a/qa/config/generate_test_data.pl
+++ b/qa/config/generate_test_data.pl
@@ -350,6 +350,7 @@ foreach my $class (@classifications) {
undef, ( $class->{name}, $class->{description} ));
}
}
+
##########################################################################
# Create Products
##########################################################################
@@ -562,6 +563,14 @@ my $canconfirm = Bugzilla::Group->new({ name => 'canconfirm' });
$dbh->do('INSERT INTO group_group_map VALUES (?, ?, 0)',
undef, $editbugs->id, $canconfirm->id);
+# BMO: Update default security group settings for new products
+my $default_security_group = Bugzilla::Group->new({ name => 'core-security' });
+$default_security_group ||= Bugzilla::Group->new({ name => 'Master' });
+foreach my $product (@products) {
+ $dbh->do('UPDATE products SET security_group_id = ? WHERE name = ?',
+ undef, $default_security_group->id, $product->{product_name});
+}
+
##########################################################################
# Add Users to Groups
##########################################################################