From d9b71c3fbcff466544ba3d7131deeb04e358069b Mon Sep 17 00:00:00 2001 From: Adam Holmes Date: Thu, 19 Dec 2024 15:14:58 +0000 Subject: [PATCH] When cloning, merge in all the options from the original item --- src/Concerns/Schemata.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Concerns/Schemata.php b/src/Concerns/Schemata.php index e38a76f9..6d3bd346 100644 --- a/src/Concerns/Schemata.php +++ b/src/Concerns/Schemata.php @@ -373,9 +373,9 @@ public static function getSectionsSchema(): array $originalItem = end($items); $clonedItem = array_merge($originalItem, [ 'name' => $originalItem['name'] . ' new', - 'options' => [ + 'options' => array_merge($originalItem['options'], [ 'htmlId' => $originalItem['options']['htmlId'] . Str::random(2), - ], + ]), ]); $items[] = $clonedItem;