[BUGFIX] Show descriptionColumn in PageLayoutView only if not empty 50/56550/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:07:21 +0000 (15:07 +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/56550
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.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 8a806b7..dbb3e4a 100644 (file)
@@ -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']]);
         }