fix: [ClusterRelationsGraphTool] Inject Orgs and SharingGroup info for

referencing nodes
pull/6120/head
mokaddem 2020-05-12 10:32:18 +02:00
parent 3bc2b2c50a
commit 77c4eb2795
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@
$referencingClusterId = $relation['GalaxyClusterRelation']['galaxy_cluster_id'];
if (!isset($this->lookup[$referencingClusterId])) {
$referencedCluster = $this->GalaxyCluster->fetchGalaxyClusters($this->user, array(
'conditions' => array('GalaxyCluster.id' => $referencingClusterId)
'conditions' => array('GalaxyCluster.id' => $referencingClusterId),
'contain' => array('Org', 'Orgc', 'SharingGroup'),
));
$this->lookup[$referencingClusterId] = !empty($referencedCluster) ? $referencedCluster[0] : array();
}