Issue Bug Closed

#90598Initialize emulated PageLayoutView before calling hooks

Christian Eßl 02/29/20, 11:29 updated 04/01/20, 21:15

Description

With the new Fluid based PageLayoutView, the preview rendering hook of ext:form fails:

htmlspecialchars() expects parameter 1 to be string, null given

in /var/www/html/typo3/sysext/form/Classes/Hooks/FormPagePreviewRenderer.php line 63
        array &$row
    ) {
        if ($row['CType'] === 'form_formframework') {
            $contentType = $parentObject->CType_labels[$row['CType']];
            $itemContent .= $parentObject->linkEditContent('<strong>' . htmlspecialchars($contentType) . '</strong>', $row) . '<br />';

            $flexFormData = GeneralUtility::makeInstance(FlexFormService::class)
                ->convertFlexFormContentToArray($row['pi_flexform']);

Reviews 1