diff --git a/typo3/sysext/form/Classes/Domain/Factory/ArrayFormFactory.php b/typo3/sysext/form/Classes/Domain/Factory/ArrayFormFactory.php index 4a05515a76d872f5ab7c8ff0176884bac04d875f..4e6c6b24ce6ce9d7d1fa47bb44f121a78fa2583f 100644 --- a/typo3/sysext/form/Classes/Domain/Factory/ArrayFormFactory.php +++ b/typo3/sysext/form/Classes/Domain/Factory/ArrayFormFactory.php @@ -71,7 +71,6 @@ class ArrayFormFactory extends AbstractFormFactory unset($configuration['renderables']); unset($configuration['type']); unset($configuration['identifier']); - unset($configuration['label']); $form->setOptions($configuration); $this->triggerFormBuildingFinished($form); diff --git a/typo3/sysext/form/Classes/Domain/Model/FormDefinition.php b/typo3/sysext/form/Classes/Domain/Model/FormDefinition.php index e496c68b66b26e811777cfd65f77e092b63a843d..fdc79a929c6fa46c01f0de7bca1147515866d252 100644 --- a/typo3/sysext/form/Classes/Domain/Model/FormDefinition.php +++ b/typo3/sysext/form/Classes/Domain/Model/FormDefinition.php @@ -349,6 +349,9 @@ class FormDefinition extends AbstractCompositeRenderable if (isset($options['rendererClassName'])) { $this->setRendererClassName($options['rendererClassName']); } + if (isset($options['label'])) { + $this->setLabel($options['label']); + } if (isset($options['renderingOptions'])) { foreach ($options['renderingOptions'] as $key => $value) { if (is_array($value)) { @@ -368,7 +371,7 @@ class FormDefinition extends AbstractCompositeRenderable ArrayUtility::assertAllArrayKeysAreValid( $options, - ['rendererClassName', 'renderingOptions', 'finishers', 'formEditor'] + ['rendererClassName', 'renderingOptions', 'finishers', 'formEditor', 'label'] ); }