From 0f81db556cc158741c3f02637e032048881d3559 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Wed, 23 Sep 2020 17:53:30 +0200 Subject: [PATCH] chg: [galaxyClusterRelations] Allow unpublished clusters in the picker --- app/Controller/GalaxiesController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Controller/GalaxiesController.php b/app/Controller/GalaxiesController.php index 425746428..c36a2e482 100644 --- a/app/Controller/GalaxiesController.php +++ b/app/Controller/GalaxiesController.php @@ -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; }