[BUGFIX] Show descriptionColumn in PageLayoutView only if not empty 51/56551/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 4 Apr 2018 13:02:25 +0000 (15:02 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Wed, 4 Apr 2018 13:24:43 +0000 (15:24 +0200)
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-on: https://review.typo3.org/56551
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 5494293..05e4986 100644 (file)
@@ -1520,7 +1520,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
         $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']]);
         }