Bug #71569
closedFrontendConfigurationManager::overrideSwitchableControllerActionsFromFlexForm does not check if plugin has flexform
0%
Description
The Situation is as follows:
An Extbase plugin is inserted which has a Flexform configured, with switchable controller actions. The Plugin is saved. Then the editor realises that the wrong plugin was used, and changes list_type (or ctype) to a diffrent Plugin from the same extention, which does NOT have a Flexform configured!
The Situation is now that tt_content.pi_flexform has valid content, which is not used by the configured plugin, which is so far as it always has been.
But, TYPO3\CMS\Extbase\Configuration\FrontendConfigurationManager::overrideSwitchableControllerActionsFromFlexForm will override the Extbase controller and action based on the contents of pi_flexform without checking if the Plugin which is loaded actually is actually using the flexfrom, resulting in an error saying that controller "" has no valid action available.
Ideal solution
TYPO3\CMS\Extbase\Configuration\FrontendConfigurationManager::overrideSwitchableControllerActionsFromFlexForm
checks if plugin has pi_flexform configured, before overriding its contents into the setup.