From bb5c5a5e62d2fd96f9b4a7339cbb0cbb33209745 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 17 Jul 2015 04:11:13 -0400 Subject: Bug 1184984 - Current Selenium tests are failing due to changes made by bug 1173442 --- qa/config/generate_test_data.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qa/config') 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); } ########################################################################## -- cgit v1.2.3-24-g4f1b