Issue Bug Closed

#95540tx_form ConfirmationFinisher does not execute the methods injectConfigurationManager and injectContentObjectRenderer

Urs Maag 10/08/21, 12:22 updated 10/04/22, 14:19

Description

Using the ConfirmationFinisher in tx_form for displaying content elements as confirmation page, it doesn’t work because the inject methods are not called and therefore the typoscript definitions are not loaded.

Class: form/Classes/Domain/Finishers/ConfirmationFinisher.php

*Workaround*
Add following code to the method “executeInternal()” before the other code:

    protected function executeInternal()
    {    
    $this->contentObjectRenderer = GeneralUtility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer');
    $this->configurationManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');
    $this->typoScriptSetup = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
    ...
    }

Reviews 2