Skip to content

Commit

Permalink
Merged branch '4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
konradoboza committed Aug 17, 2023
2 parents 7e55fa1 + 13c395a commit 4b5215f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Data/Mapper/ContentUpdateMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function mapToFormData(ValueObject $contentDraft, array $params = [])
$data->addFieldData(new FieldData([
'fieldDefinition' => $fieldDef,
'field' => $field,
'value' => $isNonTranslatable
'value' => $isNonTranslatable && isset($mappedCurrentFields[$fieldDef->identifier])
? $mappedCurrentFields[$fieldDef->identifier]->value
: $field->value,
]));
Expand Down

0 comments on commit 4b5215f

Please sign in to comment.