diff options
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/generate_bmo_data.pl | 5 |
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 |