From b0ca85faeecaaac434600671a6e562417017f4d0 Mon Sep 17 00:00:00 2001 From: Nattfarinn Date: Fri, 2 Aug 2024 08:27:04 +0200 Subject: [PATCH] fix: Create new field instead of updating it --- eZ/Publish/Core/Persistence/Legacy/Content/FieldHandler.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eZ/Publish/Core/Persistence/Legacy/Content/FieldHandler.php b/eZ/Publish/Core/Persistence/Legacy/Content/FieldHandler.php index 0be175d5f4..3c16602c2b 100644 --- a/eZ/Publish/Core/Persistence/Legacy/Content/FieldHandler.php +++ b/eZ/Publish/Core/Persistence/Legacy/Content/FieldHandler.php @@ -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); } }