#93718Page doktype check missing in recordlist on view tt_content
Description
In \TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList::makeControl when rendering the “Show” link a check on the doktype of parent page is missing when table is ‘tt_content’. This leads to an error, when the content element is created on in a storage folder.
Something like ($table === ‘tt_content’ && $this->pageIsNotInNoViewWithDokTypes($row, $tsConfig)) could fix the condition.
protected function pageIsNotInNoViewWithDokTypes(array $row, $tsConfig): bool
{
static $pages = [];
if (isset($pages[$row['pid']])) {
$page = $pages[$row['pid']];
} else {
$page = BackendUtility::getRecord('pages', $row['pid']);
$pages[$row['pid']] = $page;
}
return !in_array($page['doktype'] ?? null, $this->getNoViewWithDokTypes($tsConfig));
}