Project

General

Profile

Actions

Bug #95540

closed

tx_form ConfirmationFinisher does not execute the methods injectConfigurationManager and injectContentObjectRenderer

Added by Urs Maag over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2021-10-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
tx_form ConfirmationFinisher
Complexity:
easy
Is Regression:
Sprint Focus:

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);
    ...
    }


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #95853: DI in form finishers is not workingClosed2021-11-02

Actions
Actions #1

Updated by Urs Maag over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Urs Maag over 2 years ago

  • Description updated (diff)
Actions #3

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71894

Actions #4

Updated by Torben Hansen over 2 years ago

  • Related to Bug #95853: DI in form finishers is not working added
Actions #5

Updated by Christian Kuhn about 2 years ago

  • Status changed from Under Review to Resolved

This has been fixed with the patch for #95853

Actions #6

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF