Skip to content

Commit

Permalink
[BUGFIX] make CE search form in backend editable again
Browse files Browse the repository at this point in the history
Especially on TYPO3 10 the userfunction to load the flex form configuration produced an error.

Fixes: #3622
  • Loading branch information
rr-it authored and dkd-kaehm committed May 24, 2023
1 parent 00e00a2 commit 3e7ff72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/System/UserFunctions/FlexFormUserFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use function str_starts_with;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
use TYPO3\CMS\Extbase\Object\ObjectManager;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;

/**
Expand Down Expand Up @@ -209,7 +210,8 @@ protected function getConfigurationFromPageId(?int $pid = null): ?TypoScriptConf
return null;
}

$configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class);
/** @var ConfigurationManagerInterface $configurationManager */
$configurationManager = GeneralUtility::makeInstance(ObjectManager::class)->get(ConfigurationManagerInterface::class);
$typoScript = $configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);

return GeneralUtility::makeInstance(TypoScriptConfiguration::class, $typoScript);
Expand Down

0 comments on commit 3e7ff72

Please sign in to comment.