diff --git a/app/cdash/app/Model/BuildGroup.php b/app/cdash/app/Model/BuildGroup.php index 197b58a6a0..9ab4e28455 100644 --- a/app/cdash/app/Model/BuildGroup.php +++ b/app/cdash/app/Model/BuildGroup.php @@ -369,7 +369,7 @@ public function Delete(): bool ])->first(); } - $newGroup?->builds()->attach($oldbuild); + $newGroup?->builds()->syncWithoutDetaching($oldbuild); } // We delete the buildgroup