#110003Internal description is not rendered in page module preview footer when no restrictions are configured
Description
The page module preview footer does not render the Internal Description field if the record has no restriction-related information configured.
Affected method:
renderPageModulePreviewFooter()
Current behavior:
The method collects restriction-related fields (start time, end time, user groups) and spacing fields into the $info array. It then returns early when $info is empty:
if ($info === []) {
return ‘’;
}
The Internal Description field is processed only after this early return. As a result, records that contain only an Internal Description and no restrictions/spacings do not display the description in the preview footer.
Expected behavior:
The Internal Description should be rendered regardless of whether restriction-related information exists.
Suggested fix:
Process the Internal Description before checking whether $info is empty, or move the empty-array check to the end of the method after all footer information has been collected.
Example:
- Record contains an Internal Description.
- No start time, end time, frontend user group restrictions.
- No spacing configuration.
Result:
The preview footer is empty, although the Internal Description should be displayed.
This appears to be a regression introduced with the code changes starting from TYPO3 14.2.0.
In versions before 14.2.0, the Internal Description was rendered in the page module preview footer. Since 14.2.0, the method returns early when no restriction-related fields are present, before the Internal Description field is processed.
Therefore, content elements or records with only an Internal Description but without start time, end time, user group restrictions, or spacing fields no longer show the description in the preview footer.