Skip to content

Commit

Permalink
Fix an issue where some fields in Matrix and Super Table fields weren…
Browse files Browse the repository at this point in the history
…’t having their settings created correctly
  • Loading branch information
engram-design committed Jul 8, 2023
1 parent ce7bdfd commit 23694f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 23694f4

Please sign in to comment.