Skip to content
Snippets Groups Projects
Commit 2b55c206 authored by jaapjansma's avatar jaapjansma
Browse files

#2 check if primary data flow is table data flow.

parent 72d4b9d8
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,7 @@ abstract class AbstractCivicrmEntitySource extends AbstractSource {
protected function ensureCustomGroup($customGroupTableName, $customGroupName) {
if (isset($this->customGroupDataFlowDescriptions[$customGroupName])) {
return $this->customGroupDataFlowDescriptions[$customGroupName]->getDataFlow();
} elseif ($this->primaryDataFlow && $this->primaryDataFlow->getTable() == $customGroupTableName) {
} elseif ($this->primaryDataFlow && $this->primaryDataFlow instanceof SqlTableDataFlow && $this->primaryDataFlow->getTable() == $customGroupTableName) {
return $this->primaryDataFlow;
}
$customGroupTableAlias = $this->getSourceName().'_'.$customGroupName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment