mirror of https://github.com/MISP/MISP
fix: [clusterRelations:syncUUIDsAndIDs] Make sure to default referenced
cluster id to 0 if unknownpull/6120/head
parent
e48f0ddd5f
commit
39f1291b2d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue