[BUGFIX] t3editor: $TCA for tt_content is not loaded in ext_tables.php
authorAndreas Wolf <andreas.wolf@typo3.org>
Sun, 1 Apr 2012 17:15:32 +0000 (19:15 +0200)
committerGeorg Ringer <mail@ringerge.org>
Mon, 2 Apr 2012 05:43:26 +0000 (07:43 +0200)
The ext_tables.php of t3editor does overwrite parts of tt_content's TCA
without first loading it; this leads to errors if the ext_tables.php
cache is included before the TCA is properly loaded.

Change-Id: I54c19a2c6bc3e0b847ffa0bf19991a5936c0cba1
Resolves: #35495
Releases: 4.7, 6.0
Reviewed-on: http://review.typo3.org/10114
Reviewed-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/t3editor/ext_tables.php

index 608059b..339a9bb 100644 (file)
@@ -11,6 +11,7 @@ if (TYPO3_MODE === 'BE') {
        $TYPO3_CONF_VARS['BE']['AJAX']['tx_t3editor_TSrefLoader::getDescription'] = 'EXT:t3editor/classes/ts_codecompletion/class.tx_t3editor_tsrefloader.php:tx_t3editor_TSrefLoader->processAjaxRequest';
        $TYPO3_CONF_VARS['BE']['AJAX']['tx_t3editor_codecompletion::loadTemplates'] = 'EXT:t3editor/classes/ts_codecompletion/class.tx_t3editor_codecompletion.php:tx_t3editor_codecompletion->processAjaxRequest';
 
+       t3lib_div::loadTCA('tt_content');
                // Add the t3editor wizard on the bodytext field of tt_content
        $TCA['tt_content']['columns']['bodytext']['config']['wizards']['t3editor'] = array(
                'enableByTypeConfig' => 1,