[BUGFIX] Correct show configuration in newContentElement wizard 75/49875/2
authorNicole Cordes <typo3@cordes.co>
Wed, 7 Sep 2016 14:01:54 +0000 (16:01 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 8 Sep 2016 20:08:11 +0000 (22:08 +0200)
All elements should be shown if the asterisk is part of the show
configuration. Due to different configuration possibilities it can happen
that the asterisk is not the only value of this configuration.

Resolves: #77877
Releases: master, 7.6, 6.2
Change-Id: I5439f76ec40788cdaed14012e7b83b18e2b56d18
Reviewed-on: https://review.typo3.org/49875
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Peter Linzenkirchner <info@lisardo.de>
Tested-by: Peter Linzenkirchner <info@lisardo.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php

index e6ea978..5168c14 100644 (file)
@@ -378,7 +378,7 @@ class NewContentElementController extends AbstractModule
                 foreach ($wizards as $groupKey => $wizardGroup) {
                     $groupKey = rtrim($groupKey, '.');
                     $showItems = GeneralUtility::trimExplode(',', $wizardGroup['show'], true);
-                    $showAll = $wizardGroup['show'] === '*';
+                    $showAll = in_array('*', $showItems, true);
                     $groupItems = [];
                     if (is_array($appendWizards[$groupKey . '.']['elements.'])) {
                         $wizardElements = array_merge((array)$wizardGroup['elements.'], $appendWizards[$groupKey . '.']['elements.']);