summaryrefslogtreecommitdiffstats
path: root/qa/config
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-07-17 10:11:13 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-07-17 10:12:27 +0200
commitbb5c5a5e62d2fd96f9b4a7339cbb0cbb33209745 (patch)
treebad279ed0b93247c04c92e5f487b24b2cba9c735 /qa/config
parentb51b2accbfba9ed16133da120aa5e6e947a00191 (diff)
downloadbugzilla-bb5c5a5e62d2fd96f9b4a7339cbb0cbb33209745.tar.gz
bugzilla-bb5c5a5e62d2fd96f9b4a7339cbb0cbb33209745.tar.xz
Bug 1184984 - Current Selenium tests are failing due to changes made by bug 1173442
Diffstat (limited to 'qa/config')
-rw-r--r--qa/config/generate_test_data.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/config/generate_test_data.pl b/qa/config/generate_test_data.pl
index 4891d30bc..824464967 100644
--- a/qa/config/generate_test_data.pl
+++ b/qa/config/generate_test_data.pl
@@ -566,9 +566,9 @@ $dbh->do('INSERT INTO group_group_map VALUES (?, ?, 0)',
# 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});
+if ($default_security_group) {
+ $dbh->do('UPDATE products SET security_group_id = ? WHERE security_group_id IS NULL',
+ undef, $default_security_group->id);
}
##########################################################################