Actions
Bug #84602
closedFooter in single tt_content element
Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend User Interface
Target version:
-
Start date:
2018-04-04
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
TCA, descriptionColumn, rowDescription
Complexity:
no-brainer
Is Regression:
Sprint Focus:
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
Actions