From 92fdaed81b3a30f7d30eab5494b8d954513229c0 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Tue, 9 Feb 2021 20:35:53 +0200 Subject: [PATCH] Fix for `$blueprint->flattenData()` on list properties --- system/src/Grav/Common/Data/BlueprintSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Data/BlueprintSchema.php b/system/src/Grav/Common/Data/BlueprintSchema.php index f082f9e0b..a50bf2310 100644 --- a/system/src/Grav/Common/Data/BlueprintSchema.php +++ b/system/src/Grav/Common/Data/BlueprintSchema.php @@ -116,7 +116,7 @@ class BlueprintSchema extends BlueprintSchemaBase implements ExportInterface if ($includeAll) { foreach ($this->items as $key => $rules) { $type = $rules['type'] ?? ''; - if (!str_starts_with($type, '_')) { + if (!str_starts_with($type, '_') && !str_contains($key, '*')) { $list[$key] = null; } }