From 09d5ae6b081ead95e454c10ab48227c1c54b641e Mon Sep 17 00:00:00 2001 From: Jaap Jansma <jaap.jansma@civicoop.org> Date: Tue, 28 May 2019 15:27:13 +0200 Subject: [PATCH] Fixed issue with joining on custom fields --- Civi/DataProcessor/Source/AbstractCivicrmEntitySource.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Civi/DataProcessor/Source/AbstractCivicrmEntitySource.php b/Civi/DataProcessor/Source/AbstractCivicrmEntitySource.php index ad21e062..15b2db75 100644 --- a/Civi/DataProcessor/Source/AbstractCivicrmEntitySource.php +++ b/Civi/DataProcessor/Source/AbstractCivicrmEntitySource.php @@ -221,6 +221,7 @@ abstract class AbstractCivicrmEntitySource extends AbstractSource { return $this->primaryDataFlow; } $customGroupTableAlias = $this->getSourceName().'_'.$customGroupName; + $this->ensureEntity(); // Ensure the entity as we need it before joining. $join = new SimpleJoin($this->getSourceName(), 'id', $customGroupTableAlias, 'entity_id', 'LEFT'); $join->setDataProcessor($this->dataProcessor); $this->customGroupDataFlowDescriptions[$customGroupName] = new DataFlowDescription( -- GitLab