[BUGFIX] Always add wrapping div if dividers2tabs is disabled 61/30461/3
authorFrans Saris <franssaris@gmail.com>
Wed, 28 May 2014 08:04:09 +0000 (10:04 +0200)
committerFrans Saris <franssaris@gmail.com>
Fri, 30 May 2014 15:20:59 +0000 (17:20 +0200)
TCEforms is not wrapped in a div when dividers2tabs is disabled
and a inline-element form element is present. As a result there
is no background image/color shown.

This changes removes the check as the wrap is also needed when
inline-elements are present.

Resolves: #59163
Releases: 6.2
Change-Id: I8772fce0d99bacdf18692308c700c02c0a0defcf
Reviewed-on: https://review.typo3.org/30461
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Kay Strobach
Tested-by: Kay Strobach
Reviewed-by: Frans Saris
Tested-by: Frans Saris
typo3/sysext/backend/Classes/Form/FormEngine.php

index 435a9ef..062ddef 100644 (file)
@@ -908,9 +908,7 @@ class FormEngine {
                } else {
                        // Only one tab, so just implode and wrap the background image (= tab container) around:
                        $output = implode('', $out_array[$out_sheet]);
-                       if ($this->inline->inlineCount == 0) {
-                               $output = '<div class="typo3-dyntabmenu-divs">' . $output . '</div>';
-                       }
+                       $output = '<div class="typo3-dyntabmenu-divs">' . $output . '</div>';
                }
 
                return $output;