diff --git a/code/TranslatableFormFieldTransformation.php b/code/TranslatableFormFieldTransformation.php index 13875c6..da42973 100644 --- a/code/TranslatableFormFieldTransformation.php +++ b/code/TranslatableFormFieldTransformation.php @@ -43,7 +43,12 @@ public function transformFormField(FormField $field) $fieldname = $field->getName(); if ($this->original->isLocalizedField($fieldname)) { $field->setName($this->original->getLocalizedFieldName($fieldname)); - $field->setValue($this->original->getLocalizedValue($fieldname)); + $value = $this->original->getLocalizedValue($fieldname); + if ($value instanceof DBField) { + $field->setValue($value->getValue()); + } else { + $field->setValue($value); + } } return $this->baseTransform($newfield, $field, $fieldname);