From dbc88982740f46292751ca76e91cbab6a21402ff Mon Sep 17 00:00:00 2001 From: Nikita Hovratov Date: Mon, 8 Dec 2025 13:07:09 +0100 Subject: [PATCH] [BUGFIX] Remove added condition for v13+ pageTs handling The added condition for excluded cTypes prevented an early return for v13+ pageTS config handling: Per default no extra configuration is needed if items should be added. The condition is not needed at all. If the array is empty the foreach loop does nothing and the pageTs is returned. Fixes: #660 --- Classes/Tca/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Tca/Registry.php b/Classes/Tca/Registry.php index 8459333f..d60fba3f 100644 --- a/Classes/Tca/Registry.php +++ b/Classes/Tca/Registry.php @@ -282,7 +282,7 @@ public function getPageTsString(): string } } - if ($typo3Version->getMajorVersion() > 12 && !empty($cTypesExcludedInNewContentElementWizard)) { + if ($typo3Version->getMajorVersion() > 12) { foreach ($cTypesExcludedInNewContentElementWizard as $group => $ctypes) { $pageTs .= LF . 'mod.wizards.newContentElement.wizardItems.' . $group . '.removeItems := addToList(' . implode(',', $ctypes) . ')'; }