From ad2bcab291ba87d5451e9b253ff74fc6d7e6a445 Mon Sep 17 00:00:00 2001 From: Paul Kamma Date: Sun, 23 May 2021 14:29:04 +0200 Subject: [PATCH] [BUGFIX] Fix content type Available content types (#1884) 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 --- Classes/Content/ContentTypeManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Content/ContentTypeManager.php b/Classes/Content/ContentTypeManager.php index 3d8292c0f..be47be83a 100644 --- a/Classes/Content/ContentTypeManager.php +++ b/Classes/Content/ContentTypeManager.php @@ -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) {