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
Reviewed-on: https://review.typo3.org/49875

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarPeter Linzenkirchner <info@lisardo.de>
Tested-by: default avatarPeter Linzenkirchner <info@lisardo.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <t.motylewski@gmail.com>
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