From 23694f450f43e74a1c0b5087da60f59688129285 Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Sat, 8 Jul 2023 10:01:43 +1000 Subject: [PATCH] =?UTF-8?q?Fix=20an=20issue=20where=20some=20fields=20in?= =?UTF-8?q?=20Matrix=20and=20Super=20Table=20fields=20weren=E2=80=99t=20ha?= =?UTF-8?q?ving=20their=20settings=20created=20correctly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/Service.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/Service.php b/src/services/Service.php index c3780a4..a3440e1 100644 --- a/src/services/Service.php +++ b/src/services/Service.php @@ -189,7 +189,7 @@ public function processCloneMatrix(FieldInterface $originField): array 'searchable' => (bool)$blockField['searchable'], 'translationMethod' => $blockField['translationMethod'], 'translationKeyFormat' => $blockField['translationKeyFormat'], - 'typesettings' => $blockField['settings'], + 'typesettings' => Json::decode(Json::encode($blockField['settings'])), 'width' => $width, ]; @@ -292,7 +292,7 @@ public function processCloneSuperTable(FieldInterface $originField): array 'searchable' => (bool)$blockField['searchable'], 'translationMethod' => $blockField['translationMethod'], 'translationKeyFormat' => $blockField['translationKeyFormat'], - 'typesettings' => $blockField['settings'], + 'typesettings' => Json::decode(Json::encode($blockField['settings'])), ]; if ($blockField::class == Matrix::class) {