diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php index 9229f3eb5..7457579a5 100755 --- a/forms/ComplexTableField.php +++ b/forms/ComplexTableField.php @@ -487,6 +487,9 @@ JS; } function getFieldsFor($childData) { + $hasManyRelationName = null; + $manyManyRelationName = null; + // See if our parent class has any many_many relations by this source class if($parentClass = $this->getParentRecord()) { $manyManyRelations = $parentClass->many_many();