[BUGFIX] Set correct default value for CType in TCA 74/43574/2
authorMarkus Klein <markus.klein@typo3.org>
Fri, 25 Sep 2015 14:41:11 +0000 (16:41 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 25 Sep 2015 14:47:12 +0000 (16:47 +0200)
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: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/css_styled_content/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/fluid_styled_content/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/frontend/Configuration/TCA/tt_content.php

index ee7f2ab..235dc1d 100644 (file)
@@ -387,6 +387,7 @@ array_splice(
                )
        )
 );
+$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['default'] = 'text';
 
 // Add palettes
 $GLOBALS['TCA']['tt_content']['palettes'] = array_replace(
index 4cfb6b1..e31638e 100644 (file)
@@ -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' => '
index 2bb9000..9b2e509 100644 (file)
@@ -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