chg: [galaxyClusterRelations] Allow unpublished clusters in the picker

pull/6120/head
mokaddem 2020-09-23 17:53:30 +02:00
parent 624d8f820a
commit 0f81db556c
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -359,6 +359,9 @@ class GalaxiesController extends AppController
'GalaxyCluster.deleted' => false,
)
);
if ($target_type == 'galaxyClusterRelation') {
$conditions['OR']['GalaxyCluster.published'] = [true, false];
}
if ($selectGalaxy) {
$conditions['GalaxyCluster.galaxy_id'] = $selectGalaxy;
}