Skip to content

Commit

Permalink
IBX-8704: Fixed missing field data on form re-render
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p committed Aug 5, 2024
1 parent d1a733b commit f3d5dd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/Data/Mapper/ContentUpdateMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public function mapToFormData(ValueObject $contentDraft, array $params = [])

foreach ($params['contentType']->fieldDefinitions as $fieldDef) {
$isNonTranslatable = $fieldDef->isTranslatable === false;
if (!isset($fields[$fieldDef->identifier])) {
continue;
}
$field = $fields[$fieldDef->identifier];
$shouldUseCurrentFieldValue = $isNonTranslatable
&& isset($mappedCurrentFields[$fieldDef->identifier])
Expand Down

0 comments on commit f3d5dd6

Please sign in to comment.