Skip to content

Commit

Permalink
Merge pull request #49 from ibexa/temp_1.3_to_4.5
Browse files Browse the repository at this point in the history
Merge branch '1.3' of ezsystems/ezplatform-content-forms into 4.5
  • Loading branch information
Konrad Oboza authored Aug 17, 2023
2 parents 24693cc + 2d5114f commit 13c395a
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 13c395a

Please sign in to comment.