Skip to content
Snippets Groups Projects
Commit 99b134d3 authored by Andreas Häfner's avatar Andreas Häfner Committed by waldhacker
Browse files

[BUGFIX] Include missing LL file in form flexform

In patch #94429 inclusion of LL file has been removed accidentally.
To prevent multiple inclusion of LL-file in loop, incusion is done
in DataStructureIdentifierHook::__construct now.
Adds new constant for LLFile.

Resolves: #90784
Related: #94429
Releases: master
Change-Id: I4446ed6e05b8e506279e77fae4703a817831129d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70465


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Tested-by: default avatarwaldhacker <hello@waldhacker.dev>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: default avatarRudy Gnodde <rudy@famouswolf.com>
Reviewed-by: default avatarwaldhacker <hello@waldhacker.dev>
parent 6c12d5ad
Branches
Tags
No related merge requests found
......@@ -44,12 +44,16 @@ use TYPO3\CMS\Form\Service\TranslationService;
*/
class DataStructureIdentifierHook
{
/**
* Localisation prefix
*/
const L10N_PREFIX = 'LLL:EXT:form/Resources/Private/Language/Database.xlf:';
public function __construct()
{
$this->getLanguageService()->includeLLFile('EXT:form/Resources/Private/Language/Database.xlf');
}
/**
* The data structure depends on a current form selection (persistenceIdentifier)
* and if the field "overrideFinishers" is active. Add both to the identifier to
......
......@@ -20,6 +20,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Hooks;
use Prophecy\Argument;
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook;
use TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface;
......@@ -48,6 +49,8 @@ class DataStructureIdentifierHookTest extends UnitTestCase
$cacheProphecy->get(Argument::cetera())->willReturn(false);
$cacheProphecy->set(Argument::cetera())->willReturn(false);
GeneralUtility::setSingletonInstance(CacheManager::class, $cacheManagerProphecy->reveal());
$languageService = $this->prophesize(LanguageService::class);
$GLOBALS['LANG'] = $languageService->reveal();
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment