fix: [clusterRelations:syncUUIDsAndIDs] Make sure to default referenced

cluster id to 0 if unknown
pull/6120/head
mokaddem 2020-06-09 12:18:58 +02:00
parent e48f0ddd5f
commit 39f1291b2d
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 0 deletions

View File

@ -412,6 +412,8 @@ class GalaxyClusterRelation extends AppModel
$targetCluster = $targetCluster[0];
$relation['GalaxyClusterRelation']['referenced_galaxy_cluster_id'] = $targetCluster['TargetCluster']['id'];
$relation['GalaxyClusterRelation']['referenced_galaxy_cluster_uuid'] = $targetCluster['TargetCluster']['uuid'];
} else {
$relation['GalaxyClusterRelation']['referenced_galaxy_cluster_id'] = 0;
}
return $relation;
}