From 1636b8cc8b0ec78977656c4dda4fcdf4a67a3e36 Mon Sep 17 00:00:00 2001 From: Achim Fritz Date: Thu, 8 Oct 2026 14:06:27 +0200 Subject: [PATCH] [BUGFIX] Allow overriding content type restrictions ContainerConfiguration::changeGridColumnConfiguration() only applies a fixed list of fields from the given override, e.g. when called from a listener for BeforeContainerConfigurationIsAppliedEvent. When TYPO3 core introduced the column options "allowedContentTypes" and "disallowedContentTypes", they were not added to that list. As a result, they could not be changed this way and were silently ignored. Add both options to the list of fields that can be overridden. --- Classes/Tca/ContainerConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Tca/ContainerConfiguration.php b/Classes/Tca/ContainerConfiguration.php index b6337ca9..236419bc 100644 --- a/Classes/Tca/ContainerConfiguration.php +++ b/Classes/Tca/ContainerConfiguration.php @@ -223,7 +223,7 @@ public function changeGridColumnConfiguration(int $colPos, array $override): voi { $rows = $this->getGrid(); $modRows = []; - $columnConfigurationFields = ['name', 'allowed', 'disallowed', 'maxitems', 'colspan']; + $columnConfigurationFields = ['name', 'allowed', 'disallowed', 'maxitems', 'colspan', 'allowedContentTypes', 'disallowedContentTypes']; foreach ($rows as &$columns) { foreach ($columns as &$column) { if ((int)$column['colPos'] === $colPos) {