[BUGFIX] Hide hidden TCA palettes 39/36739/2
authorFrans Saris <franssaris@gmail.com>
Sun, 8 Feb 2015 11:13:23 +0000 (12:13 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 8 Feb 2015 11:28:51 +0000 (12:28 +0100)
Followup of Form engine refactory

Resolves: #64928
Releases: master
Change-Id: I3a563aba48179dacc2dcc871f47b9e234b095bba
Reviewed-on: http://review.typo3.org/36739
Reviewed-by: Benjamin Kott <info@bk2k.info>
Tested-by: Benjamin Kott <info@bk2k.info>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/backend/Classes/Form/FormEngine.php

index 72f723c..7250506 100644 (file)
@@ -1078,7 +1078,7 @@ class FormEngine {
 
                                $out = '
                                        <!-- getPaletteFields -->
-                                       <fieldset class="form-section">
+                                       <fieldset class="'. ($isHiddenPalette ? 'hide' : 'form-section') . '">
                                                ' . ($header ? '<h4 class="form-section-headline">' . htmlspecialchars($header) . '</h4>' : '') . '
                                                ' . ($collapsedHeader ? '<h4 class="form-section-headline">' . htmlspecialchars($collapsedHeader) . '</h4>' : '') . '
                                                ' . $code . '