Skip to content

Commit

Permalink
[BUGFIX] Fix content type Available content types (#1884)
Browse files Browse the repository at this point in the history
I've discovered the problem with Issue #1866 where the content types selection only worked when the Plug & Play checkbox was selected.
During my xdebug fiddling I noticed that even I had 2 flux based extensions and the Plug & Play enabled the CEs of first extension didn't get listed in the 'Available content types' list.
After a bit more of debugging I came down to this line where the `$this->typeNames` were replaced instead of added to the already existing one.
After I've changed the line it worked even without Plug & Play selection.

Co-authored-by: Claus Due <claus@namelesscoder.net>
  • Loading branch information
X-Tender and NamelessCoder committed May 23, 2021
1 parent 6ae1fe2 commit ad2bcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Content/ContentTypeManager.php
Expand Up @@ -56,7 +56,7 @@ public function fetchContentTypes(): iterable
(array) FluidFileBasedContentTypeDefinition::fetchContentTypes(),
(array) RecordBasedContentTypeDefinition::fetchContentTypes()
);
$this->typeNames = array_keys($types);
$this->typeNames = array_merge($this->typeNames, array_keys($types));
} catch (DBALException $error) {
// Suppress schema- or connection-related issues
} catch (NoSuchCacheException $error) {
Expand Down

0 comments on commit ad2bcab

Please sign in to comment.