diff --git a/system/src/Grav/Common/Data/BlueprintForm.php b/system/src/Grav/Common/Data/BlueprintForm.php index 236603519..64aecdffc 100644 --- a/system/src/Grav/Common/Data/BlueprintForm.php +++ b/system/src/Grav/Common/Data/BlueprintForm.php @@ -325,8 +325,14 @@ abstract class BlueprintForm implements \ArrayAccess, ExportInterface { $ordering = ''; $order = []; + $field = end($path) === 'fields'; foreach ($items as $key => &$item) { + // Set name for nested field. + if ($field && isset($item['type'])) { + $item['name'] = $key; + } + // Handle special instructions in the form. if (!empty($key) && ($key[0] === '@' || $key[strlen($key) - 1] === '@')) { $name = trim($key, '@');