Bug #84602
closedFooter in single tt_content element
100%
Description
There is a little display issue in the footer of a content element, see appended file "beview.png": The framed area is the footer of that content element, but there shouldn't be a footer, not even an empty footer.
That's because of this code in function "tt_content_drawFooter" of class "PageLayoutView":
if (!empty($GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn'])) {
$info[] = htmlspecialchars($row[$GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn']]);
}
$GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn']
is always set to "rowDescription", but $row['rowDescription']
is empty most times.
The resulting array $info is
array(1 item) 0 => '' (0 chars)
but it should be an empty array.
Just write
if (!empty($GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn']) && $row[$GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn']]) { ...
and all should be fine.
Files
Updated by Georg Ringer over 6 years ago
- Related to Feature #67603: Introduce TCA>descriptionColumn definition added
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56550
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56551
Updated by Georg Ringer over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8ae0820eb3340f3a9d4318bebc998a0a2de15dd8.