Skip to content

Commit

Permalink
fix: Create new field instead of updating it
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattfarinn committed Aug 2, 2024
1 parent df28a0d commit b0ca85f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eZ/Publish/Core/Persistence/Legacy/Content/FieldHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ public function updateFields(Content $content, UpdateStruct $updateStruct, Type
$field->versionNo = $content->versionInfo->versionNo;
// Persist virtual field
if (null === $field->id) {
$this->updateField($field, $content);
$updatedFields[$fieldDefinition->id][$languageCode] = $field;
$this->createNewField($field, $content);
}
}

Expand Down

0 comments on commit b0ca85f

Please sign in to comment.