From af6787073716b1f8060484b81f7d8b525bffd521 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sat, 16 Mar 2024 14:39:30 +0100 Subject: [PATCH] BUGFIX: Don't expect each `element` to map to a property configuration --- .../CreationDialogPropertiesCreationHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/NodeCreationHandler/CreationDialogPropertiesCreationHandler.php b/Classes/NodeCreationHandler/CreationDialogPropertiesCreationHandler.php index 17deedb02b..bee4e9d547 100644 --- a/Classes/NodeCreationHandler/CreationDialogPropertiesCreationHandler.php +++ b/Classes/NodeCreationHandler/CreationDialogPropertiesCreationHandler.php @@ -32,7 +32,7 @@ class CreationDialogPropertiesCreationHandler implements NodeCreationHandlerInte public function handle(NodeInterface $node, array $data): void { foreach ($data as $propertyName => $propertyValue) { - $propertyConfiguration = $node->getNodeType()->getConfiguration('properties')[$propertyName]; + $propertyConfiguration = $node->getNodeType()->getConfiguration('properties')[$propertyName] ?? null; if (!isset($propertyConfiguration['ui']['showInCreationDialog']) || $propertyConfiguration['ui']['showInCreationDialog'] !== true) { continue; }