Commit d2e7e15c authored by Fabian Galinski's avatar Fabian Galinski

[BUGFIX] The NEW flag ids have a dot as the id

parent 69a7dc10
......@@ -36,6 +36,7 @@ use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Core\Site\SiteFinder;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\StringUtility;
use TYPO3\Languagevisibility\Manager\CacheManager;
use TYPO3\Languagevisibility\Repository\VisibilityFlagRepository;
use TYPO3\Languagevisibility\Service\BackendServices;
......@@ -445,7 +446,7 @@ class TceMainHook {
} else {
//visibility flag record doesnt exist and needs to be created
$newUid = uniqid('NEW', TRUE);
$newUid = StringUtility::getUniqueId('NEW');
if ($enableLogging) {
$dataHandler->insertDB(
......
......@@ -43,6 +43,7 @@ use TYPO3\CMS\Core\Site\SiteFinder;
use TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\RootlineUtility;
use TYPO3\CMS\Core\Utility\StringUtility;
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
use TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher;
......@@ -260,7 +261,7 @@ class FieldVisibilityUserFunction extends AbstractFormElement {
$visibilityFlagUid = $visbilityFlag['uid'];
$currentVisibilityFlag = $visbilityFlag['flag'];
} else {
$visibilityFlagUid = uniqid('NEW', TRUE);
$visibilityFlagUid = StringUtility::getUniqueId('NEW');
$currentVisibilityFlag = 'active';
}
......
Markdown is supported
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