Check for component before saving, fallback to full form field name

This commit is contained in:
Tyler 2022-04-05 14:39:23 -04:00
parent cb05e52b0f
commit 13b81c5e38

View File

@ -475,8 +475,10 @@ class FormField extends RequestHandler
$component = $record->relObject($relation); $component = $record->relObject($relation);
} }
if ($fieldName) { if ($fieldName && $component) {
$component->setCastedField($fieldName, $this->dataValue()); $component->setCastedField($fieldName, $this->dataValue());
} else {
$record->setCastedField($this->name, $this->dataValue());
} }
} }