[FOLLOWUP] This is FormEngine 38/36638/2
authorBenjamin Kott <benjamin.kott@outlook.com>
Tue, 3 Feb 2015 20:20:21 +0000 (21:20 +0100)
committerSteffen Müller <typo3@t3node.com>
Tue, 3 Feb 2015 20:42:45 +0000 (21:42 +0100)
Correct clearing for --linebreaks-- within palettes.

Releases: master
Resolves: #64762
Change-Id: I9a7473e073cb9d563da3a645e1813fbff7dc1102
Reviewed-on: http://review.typo3.org/36638
Reviewed-by: Frederic Gaus <gaus@flagbit.de>
Tested-by: Frederic Gaus <gaus@flagbit.de>
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
typo3/sysext/backend/Classes/Form/FormEngine.php

index 8b4d14b..082634c 100644 (file)
@@ -4009,7 +4009,7 @@ class FormEngine {
                        for ($counter = 0; $counter < $numberOfItems; $counter++) {
                                $content = $fields[$counter];
                                if ($content['NAME'] === '--linebreak--') {
-                                       if ($counter + 1 !== $numberOfItems) {
+                                       if ($counter !== $numberOfItems) {
                                                $out .= '<div class="clearfix"></div>';
                                        }
                                } else {