@@ -46,7 +46,8 @@ public function manipulateWizardItems(array $items, int $pageUid, ?int $columnPo
4646 $ items = array_filter (
4747 $ items ,
4848 function (array $ item ) use ($ enabledContentTypes , $ fluxContentTypeNames ) {
49- $ contentType = $ item ['tt_content_defValues ' ]['CType ' ] ?? null ;
49+ $ contentType = $ item ['defaultValues ' ]['CType ' ]
50+ ?? $ item ['tt_content_defValues ' ]['CType ' ] ?? null ;
5051 return !in_array ($ contentType , $ fluxContentTypeNames , true ) ||
5152 in_array ($ contentType , $ enabledContentTypes , true );
5253 }
@@ -199,7 +200,8 @@ protected function applyBlacklist(array $items, array $blacklist): array
199200 if (0 < count ($ blacklist )) {
200201 foreach ($ blacklist as $ contentElementType ) {
201202 foreach ($ items as $ name => $ item ) {
202- if (($ item ['tt_content_defValues ' ]['CType ' ] ?? null ) === $ contentElementType ) {
203+ if (($ item ['defaultValues ' ]['CType ' ]
204+ ?? $ item ['tt_content_defValues ' ]['CType ' ] ?? null ) === $ contentElementType ) {
203205 unset($ items [$ name ]);
204206 }
205207 }
@@ -213,7 +215,7 @@ protected function applyWhitelist(array $items, array $whitelist): array
213215 $ whitelist = array_unique ($ whitelist );
214216 if (0 < count ($ whitelist )) {
215217 foreach ($ items as $ name => $ item ) {
216- $ contentType = $ item ['tt_content_defValues ' ]['CType ' ] ?? '' ;
218+ $ contentType = $ item ['defaultValues ' ][ ' CType ' ] ?? $ item [ ' tt_content_defValues ' ]['CType ' ] ?? '' ;
217219 if (strpos ($ name , '_ ' ) !== false && !in_array ($ contentType , $ whitelist , true )) {
218220 unset($ items [$ name ]);
219221 }
0 commit comments