#82252Typoscript formDefinitionOverrides do override the Flexform setting overrides
Description
We are using the typoscript “formDefinitionOverrides” to be able to set form definition settings depending on the current environment and language.
This does work fine and looks like this:
plugin.tx_form {
settings {
formDefinitionOverrides {
ContactForm {
finishers {
0 {
options {
recipientAddress = {$plugin.configuration.site.extensions.form.contact.recipientAddress}
}
}
}
}
}
}
}
But it should be possible to override these settings by the flexform finisher overrides. Unfortunately the ordering in the “FormFrontendController” makes this impossible:
$formDefinition = $this->formPersistenceManager->load($this->settings['persistenceIdentifier']);
$formDefinition['persistenceIdentifier'] = $this->settings['persistenceIdentifier'];
$formDefinition = $this->overrideByFlexFormSettings($formDefinition);
$formDefinition = $this->overrideByTypoScriptSettings($formDefinition);
It doesn’t make sense to override flexform settings by typoscript settings. In my opinion (formhandler worked the same way) the flexform settings should be the most important setting.