[BUGFIX] Followup for removed table wrap in FormEngine 55/21855/2
authorBenjamin Mack <benni@typo3.org>
Wed, 3 Jul 2013 16:27:41 +0000 (18:27 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 4 Jul 2013 07:19:47 +0000 (09:19 +0200)
The previous issue #49596, ChangeID
Ifa46ce40ff4437b2bb3e7d32e5e4e56caba0caec
brings a side-effect that TCEform record editing for records
without tabs have no background at all.

The attached patch fixes that by adding a wrap around the
whole form (but not  for inline editing records).

Resolves: #49647
Releases: 6.2
Change-Id: Ia5d8c47d633c23f1cd0eac4d6921ffc629152fe5
Reviewed-on: https://review.typo3.org/21855
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/backend/Classes/Form/FormEngine.php

index f803d6e..eb9d11c 100644 (file)
@@ -891,9 +891,13 @@ class FormEngine {
                                        </td>
                                </tr>';
                } else {
-                       // Only one, so just implode:
+                       // 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>';
+                       }
                }
+
                return $output;
        }