From cef81b4f179d8fb742ab89b0e62955316af46e8f Mon Sep 17 00:00:00 2001 From: Henrik Elsner <helsner@dfau.de> Date: Fri, 28 Apr 2017 17:38:58 +0200 Subject: [PATCH] [TASK] Resolve empty table row issue 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/52658 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de> Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> --- .../sysext/backend/Classes/Form/Element/TextTableElement.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/typo3/sysext/backend/Classes/Form/Element/TextTableElement.php b/typo3/sysext/backend/Classes/Form/Element/TextTableElement.php index f08a521a9764..f534ec18e844 100644 --- a/typo3/sysext/backend/Classes/Form/Element/TextTableElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/TextTableElement.php @@ -186,9 +186,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">'; -- GitLab