Commit 0c436836 authored by Nicole Cordes's avatar Nicole Cordes Committed by Tymoteusz Motylewski
Browse files

[BUGFIX] Correct show configuration in newContentElement wizard

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

Tested-by: default avatarTYPO3com <>
Reviewed-by: default avatarPeter Linzenkirchner <>
Tested-by: default avatarPeter Linzenkirchner <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <>
Tested-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <>
parent d05740f9
......@@ -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.']);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment