[BUGFIX] 'eval' => 'null' field stays disabled 03/49403/2
authorFrank Naegler <frank.naegler@typo3.org>
Fri, 5 Aug 2016 19:50:38 +0000 (21:50 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 5 Aug 2016 21:13:31 +0000 (23:13 +0200)
This is a regression fix, introduced with #75397

Resolves: #77287
Related: #75397
Releases: master, 7.6
Change-Id: I405646aee0acc6a67753c79ae4b3d3c5f8de1bed
Reviewed-on: https://review.typo3.org/49403
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Build/Resources/Public/Less/TYPO3/_element_tceforms.less
typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index 7d29f7b..3d40b63 100644 (file)
@@ -241,6 +241,11 @@ div.t3-form-field-container:first-child .t3-form-field-label-flex {
                filter: alpha(opacity=50);
        }
 }
+// z-index must be higher as .t3-form-field-disable z-index
+// this is required for the eval=null field checkbox
+.t3-form-field-eval-null-checkbox {
+       z-index: 9000;
+}
 .t3-form-palette-field-label {
        text-indent: 2px;
 }
index fb4dcf0..b13ae82 100644 (file)
@@ -226,13 +226,13 @@ class SingleFieldContainer extends AbstractContainer
             $nullValueWrap = array();
             $nullValueWrap[] = '<div class="' . implode(' ', $fieldItemClasses) . '">';
             $nullValueWrap[] =    '<div class="t3-form-field-disable"></div>';
-            $nullValueWrap[] =    '<div class="checkbox">';
+            $nullValueWrap[] =    '<div class="checkbox t3-form-field-eval-null-checkbox">';
             $nullValueWrap[] =        '<label>';
             $nullValueWrap[] =            '<input type="hidden"' . $nullControlNameAttribute . ' value="0" />';
             $nullValueWrap[] =            '<input type="checkbox"' . $nullControlNameAttribute . ' value="1" onchange="' . $onChange . '"' . $checked . ' /> &nbsp;';
             $nullValueWrap[] =        '</label>';
-            $nullValueWrap[] =        $html;
             $nullValueWrap[] =    '</div>';
+            $nullValueWrap[] =    $html;
             $nullValueWrap[] = '</div>';
 
             $html = implode(LF, $nullValueWrap);
index 2b4bf84..d3ae1e5 100644 (file)
@@ -10951,6 +10951,9 @@ div.t3-form-field-container:first-child .t3-form-field-label-flex {
   opacity: 0.5;
   filter: alpha(opacity=50);
 }
+.t3-form-field-eval-null-checkbox {
+  z-index: 9000;
+}
 .t3-form-palette-field-label {
   text-indent: 2px;
 }