Skip to content
Snippets Groups Projects
Commit 501822a3 authored by Markus Klein's avatar Markus Klein Committed by Morton Jonuschat
Browse files

[BUGFIX] Set correct default value for CType in TCA

Frontend must not define a non-existing default value.
CSC and FSC define their correct respective defaults now.

Resolves: #70121
Releases: master
Change-Id: Icf604efb3d4949a2dc11f310feba18e03f506530
Reviewed-on: http://review.typo3.org/43574


Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
parent 67870122
Branches
Tags
No related merge requests found
......@@ -387,6 +387,7 @@ array_splice(
)
)
);
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['default'] = 'text';
// Add palettes
$GLOBALS['TCA']['tt_content']['palettes'] = array_replace(
......
......@@ -18,6 +18,8 @@ call_user_func(function() {
'header',
'after'
);
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['default'] = 'textmedia';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['textmedia'] = 'mimetypes-x-content-text-media';
$GLOBALS['TCA']['tt_content']['palettes']['mediaAdjustments'] = [
'showitem' => '
......
......@@ -116,7 +116,7 @@ return array(
'EXT:t3skin/icons/gfx/i/tt_content_html.gif'
)
),
'default' => 'text',
'default' => 'header',
'authMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['explicitADmode'],
'authMode_enforce' => 'strict',
'noIconsBelowSelect' => 1
......
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