Skip to content

Commit

Permalink
[BUGFIX] Handle associative option array in ProviderProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Aug 16, 2023
1 parent cf5c716 commit 934dfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Integration/FormEngine/ProviderProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function addData(array $result): array
$fluidContentTypeNames = (array) $this->contentTypeManager->fetchContentTypeNames();
$currentItems = $result['processedTca']['columns']['CType']['config']['items'];
foreach ($currentItems as $index => $optionArray) {
$contentTypeName = $optionArray[1];
$contentTypeName = $optionArray['value'] ?? $optionArray[1];
if (in_array($contentTypeName, $fluidContentTypeNames, true)
&& !in_array($contentTypeName, $enabledContentTypes, true)
) {
Expand Down

0 comments on commit 934dfd4

Please sign in to comment.