[BUGFIX] Correct HTML nesting in RadioElement 36/58136/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 3 Sep 2018 02:48:54 +0000 (04:48 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 3 Sep 2018 06:55:15 +0000 (08:55 +0200)
FormEngine RadioElements misses a closing div.

Resolves: #86095
Releases: master
Change-Id: If7041a4579f811fdd3c234815052762048103f89
Reviewed-on: https://review.typo3.org/58136
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/backend/Classes/Form/Element/RadioElement.php

index d8b6414..e886923 100644 (file)
@@ -80,7 +80,6 @@ class RadioElement extends AbstractFormElement
         $html[] = $fieldInformationHtml;
         $html[] =   '<div class="form-wizards-wrap">';
         $html[] =       '<div class="form-wizards-element">';
-
         foreach ($this->data['parameterArray']['fieldConf']['config']['items'] as $itemNumber => $itemLabelAndValue) {
             $label = $itemLabelAndValue[0];
             $value = $itemLabelAndValue[1];
@@ -101,6 +100,7 @@ class RadioElement extends AbstractFormElement
             $html[] =     '</label>';
             $html[] = '</div>';
         }
+        $html[] =       '</div>';
         if (!$disabled && !empty($fieldWizardHtml)) {
             $html[] =   '<div class="form-wizards-items-bottom">';
             $html[] =       $fieldWizardHtml;