Commit 4d43e1ab authored by Göran Bodenschatz's avatar Göran Bodenschatz Committed by Anja Leichsenring
Browse files

[BUGFIX] Remove only 'CType' keys from wizard

Check for key name of 'CType' before removing the content
element from new content wizard.

This is a regression from #23864 where a hardcoded
CType column check was removed that is actually required
in this case.

Resolves: #61114
Related: #23864
Releases: master
Change-Id: Ib65410dee4f7328a3b8bbceaa21c8367843905f3

Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: default avatarZbigniew Jacko <>
Tested-by: default avatarZbigniew Jacko <>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <>
parent 62152507
......@@ -472,7 +472,7 @@ class NewContentElementController {
$keepItems[$fN] = GeneralUtility::trimExplode(',', $TCEFORM_TSconfig[$fN]['keepItems'], TRUE);
$isNotInKeepItems = count($keepItems[$fN]) && !in_array($fV, $keepItems[$fN]);
if ($authModeDeny || in_array($fV, $removeItems[$fN]) || $isNotInKeepItems) {
if ($authModeDeny || $fN === 'CType' && in_array($fV, $removeItems[$fN]) || $isNotInKeepItems) {
// Remove element all together:
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