Project

General

Profile

Actions

Bug #100049

open

Forms: TypoScript overrides destroys Flexform finisher overrides

Added by Timo Pfeffer over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Start date:
2023-02-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In the case that you have a combination of TypoScript and Flexform overrides then only the TypoScript overrides will be applied. The reason is that after the call of resolvePossibleTypoScriptConfiguration in FormFrontendController line 163 is resetting the contentObject property of ConfigurationManager. The contentObject property is needed for the Flexform overrides because it holds the pi_flexform (configurationManager->getContentObject()->data['pi_flexform']) field value of the database record. After resetting the contentObject property the data array is empty. I currently don't know the reason and exact position where the contentObject is resetted, but I know that after this call described above it is empty.

I have fixed it in my case by defining a XClass which overrides the function overrideByTypoScriptSettings. In that the clone of the contentObject is saved before the call of resolvePossibleTypoScriptConfiguration() and if the reset did happen, then it will set the clone as new contentObject. I know it is really satanic, but it works in my case xD

No data to display

Actions

Also available in: Atom PDF