Commit 8ae0820e authored by Georg Ringer's avatar Georg Ringer Committed by Tymoteusz Motylewski
Browse files

[BUGFIX] Show descriptionColumn in PageLayoutView only if not empty

Check if there is actually content provided to build the footer of
content elements in the page module.

Resolves: #84602
Releases: master, 8.7
Change-Id: Ic2be8eed03b7ed06bc6f048f5e56854e5155615c

Reviewed-by: default avatarMathias Schreiber <>
Tested-by: default avatarMathias Schreiber <>
Reviewed-by: default avatarDaniel Goerz <>
Tested-by: default avatarDaniel Goerz <>
Reviewed-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <>
Tested-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <>
parent 2c0c89b2
......@@ -1906,7 +1906,7 @@ class PageLayoutView implements LoggerAwareInterface
$this->getProcessedValue('tt_content', 'starttime,endtime,fe_group,space_before_class,space_after_class', $row, $info);
// Content element annotation
if (!empty($GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn'])) {
if (!empty($GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn']) && !empty($row[$GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn']])) {
$info[] = htmlspecialchars($row[$GLOBALS['TCA']['tt_content']['ctrl']['descriptionColumn']]);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment