Skip to content

Commit b0ca85f

Browse files
committed
fix: Create new field instead of updating it
1 parent df28a0d commit b0ca85f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eZ/Publish/Core/Persistence/Legacy/Content/FieldHandler.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ public function updateFields(Content $content, UpdateStruct $updateStruct, Type
363363
$field->versionNo = $content->versionInfo->versionNo;
364364
// Persist virtual field
365365
if (null === $field->id) {
366-
$this->updateField($field, $content);
367-
$updatedFields[$fieldDefinition->id][$languageCode] = $field;
366+
$this->createNewField($field, $content);
368367
}
369368
}
370369

0 commit comments

Comments
 (0)