[TASK] Resolve empty table row issue 85/52685/2
authorHenrik Elsner <helsner@dfau.de>
Fri, 28 Apr 2017 15:38:58 +0000 (17:38 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 2 May 2017 18:21:42 +0000 (20:21 +0200)
When saving a table content element an empty row was added
each time.
This issue is resolved by combining the lines to prevent
new line generation.

Resolves: #81050
Releases: master, 8.7
Change-Id: Id67808f10e1f573e587a08c9ff383fc7e0cc4dd5
Reviewed-on: https://review.typo3.org/52685
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Element/TextTableElement.php

index 1584245..876a4b7 100644 (file)
@@ -190,9 +190,7 @@ class TextTableElement extends AbstractFormElement
         $html[] =   '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
         $html[] =       '<div class="form-wizards-wrap">';
         $html[] =           '<div class="form-wizards-element">';
-        $html[] =               '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>';
-        $html[] =                   htmlspecialchars($itemValue);
-        $html[] =               '</textarea>';
+        $html[] =               '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>';
         $html[] =           '</div>';
         $html[] =           '<div class="form-wizards-items-aside">';
         $html[] =               '<div class="btn-group">';