diff --git a/typo3/sysext/core/Documentation/Changelog/8.7.x/Breaking-82093-ExtFormFieldPartialChanged.rst b/typo3/sysext/core/Documentation/Changelog/8.7.x/Breaking-82093-ExtFormFieldPartialChanged.rst new file mode 100644 index 000000000000..5c4c94b5e008 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/8.7.x/Breaking-82093-ExtFormFieldPartialChanged.rst @@ -0,0 +1,57 @@ +.. include:: ../../Includes.txt + +================================================================= +Breaking: #82093 - EXT:form Partials/Field/Field.html has changed +================================================================= + +See :issue:`82093` + +Description +=========== + +To let the form field viewhelper attribute errorClass work, the partial +"EXT:form/Resources/Private/Frontend/Partials/Field/Field.html" has been changed. + +.. code-block:: html + + + +has been changed to + +.. code-block:: html + + + + +Impact +====== + +Users who overwrite this partial by its own partial have to make adjustments. +Otherwise no "has-error" class will be rendered in case of form validation errors +into the parents
and the +content will not be rendered. + + +Affected Installations +====================== + +All installations with overwritten partial "EXT:form/Resources/Private/Frontend/Partials/Field/Field.html" + + +Migration +========= + +Change the partial Field/Field.html within your site package. + +.. code-block:: html + + + +change to + +.. code-block:: html + + + + +.. index:: Frontend, ext:form, NotScanned diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-82093-ExtFormFieldPartialChanged.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-82093-ExtFormFieldPartialChanged.rst new file mode 100644 index 000000000000..5c4c94b5e008 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Breaking-82093-ExtFormFieldPartialChanged.rst @@ -0,0 +1,57 @@ +.. include:: ../../Includes.txt + +================================================================= +Breaking: #82093 - EXT:form Partials/Field/Field.html has changed +================================================================= + +See :issue:`82093` + +Description +=========== + +To let the form field viewhelper attribute errorClass work, the partial +"EXT:form/Resources/Private/Frontend/Partials/Field/Field.html" has been changed. + +.. code-block:: html + + + +has been changed to + +.. code-block:: html + + + + +Impact +====== + +Users who overwrite this partial by its own partial have to make adjustments. +Otherwise no "has-error" class will be rendered in case of form validation errors +into the parents
and the +content will not be rendered. + + +Affected Installations +====================== + +All installations with overwritten partial "EXT:form/Resources/Private/Frontend/Partials/Field/Field.html" + + +Migration +========= + +Change the partial Field/Field.html within your site package. + +.. code-block:: html + + + +change to + +.. code-block:: html + + + + +.. index:: Frontend, ext:form, NotScanned diff --git a/typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php b/typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php index 275dcec93659..8433518c6883 100644 --- a/typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php +++ b/typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php @@ -482,7 +482,7 @@ protected function mapAndValidatePage(Page $page): Result $exception ); } - $result->forProperty($propertyPath)->merge($processingRule->getProcessingMessages()); + $result->forProperty($this->getIdentifier() . '.' . $propertyPath)->merge($processingRule->getProcessingMessages()); $this->formState->setFormValue($propertyPath, $value); } } diff --git a/typo3/sysext/form/Resources/Private/Frontend/Partials/Field/Field.html b/typo3/sysext/form/Resources/Private/Frontend/Partials/Field/Field.html index 6b1107ed216e..3b01de7f5165 100644 --- a/typo3/sysext/form/Resources/Private/Frontend/Partials/Field/Field.html +++ b/typo3/sysext/form/Resources/Private/Frontend/Partials/Field/Field.html @@ -1,5 +1,5 @@ - +