[BUGFIX] Fix missing page types in create pages wizard 51/50251/2
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 17 Oct 2016 20:18:45 +0000 (22:18 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 18 Oct 2016 07:16:13 +0000 (09:16 +0200)
While cleaning up $GLOBALS[PAGE_TYPES] with #77360 it was
assumed the keys and values are not evaluated anymore.
But the create pages wizard uses this list to create the types
select box. Add all missing page types in the wizard directly.

Resolves: #78310
Related: #77360
Releases: master
Change-Id: Ifb841d0b8c7d6072e2db4564563777c3053dfc62
Reviewed-on: https://review.typo3.org/50251
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Robert van Kammen <rvkammen@hotmail.com>
Tested-by: Robert van Kammen <rvkammen@hotmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/wizard_crpages/Classes/Controller/CreatePagesWizardModuleFunctionController.php

index f64c8a3..7586d5b 100644 (file)
@@ -158,6 +158,11 @@ class CreatePagesWizardModuleFunctionController extends \TYPO3\CMS\Backend\Modul
         unset($types['default']);
         $types = array_keys($types);
         $types[] = PageRepository::DOKTYPE_DEFAULT;
+        $types[] = PageRepository::DOKTYPE_LINK;
+        $types[] = PageRepository::DOKTYPE_SHORTCUT;
+        $types[] = PageRepository::DOKTYPE_MOUNTPOINT;
+        $types[] = PageRepository::DOKTYPE_SPACER;
+
         if (!$this->getBackendUser()->isAdmin() && isset($this->getBackendUser()->groupData['pagetypes_select'])) {
             $types = GeneralUtility::trimExplode(',', $this->getBackendUser()->groupData['pagetypes_select'], true);
         }