summaryrefslogtreecommitdiffstats
path: root/docker
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 /docker
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 'docker')
-rwxr-xr-xdocker/generate_bmo_data.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/generate_bmo_data.pl b/docker/generate_bmo_data.pl
index 84b0f0bf8..c58b5746f 100755
--- a/docker/generate_bmo_data.pl
+++ b/docker/generate_bmo_data.pl
@@ -388,7 +388,10 @@ foreach my $group (@groups) {
# Update default security group settings for new products
my $default_security_group = Bugzilla::Group->new({ name => 'core-security' });
-$dbh->do('UPDATE products SET security_group_id = ?', undef, $default_security_group->id);
+if ($default_security_group) {
+ $dbh->do('UPDATE products SET security_group_id = ? WHERE security_group_id IS NULL',
+ undef, $default_security_group->id);
+}
##########################################################################
# Set Parameters