[TASK] Render wizards of FormEngine elements only if needed
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Element / CheckboxLabeledToggleElement.php
index adfba81..743ea24 100644 (file)
@@ -145,7 +145,7 @@ class CheckboxLabeledToggleElement extends AbstractFormElement
         $html[] =       '<div class="form-wizards-element">';
         $html[] =           $elementHtml;
         $html[] =       '</div>';
-        if (!$disabled) {
+        if (!$disabled && !empty($fieldWizardHtml)) {
             $html[] =   '<div class="form-wizards-items-bottom">';
             $html[] =       $fieldWizardHtml;
             $html[] =   '</div>';