Issue Bug Closed

#67042$TCA['random_table'] not available if target table is loaded below the extending extension in PackagesStates.php

Arek van Schaijk 05/20/15, 00:31 updated 05/20/15, 00:48

Description

Hi,

I found out that $TCA[‘tt_address’] is not available yet in ext_tables.php of an extension which is loaded above tt_address in typo3conf/PackagesStates.php.
So \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns() does not add your TCA columns to the TCA which is loaded below your extension.

ext_tables.php:print_r($TCA[‘tt_address’]); result when tt_address is loaded above my extension:

Array
(
    [ctrl] => Array
        (
            [label] => name
            [label_alt] => email
            [default_sortby] => ORDER BY name
            [tstamp] => tstamp
            [prependAtCopy] => LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy
            [delete] => deleted
            [title] => LLL:EXT:tt_address/locallang_tca.xml:tt_address
            [thumbnail] => image
            [enablecolumns] => Array
                (
                    [disabled] => hidden
                )

            [dynamicConfigFile] => C:/wamp/www/laportavacanze62.projects.netcreators.nl/typo3conf/ext/tt_address/tca.php
            [iconfile] => ../typo3conf/ext/tt_address/ext_icon.gif
            [searchFields] => name, first_name, middle_name, last_name, email
        )

    [interf....

ext_tables.php:var_dump($TCA[‘tt_address’]); result in “null” when tt_address is loaded below my extension.

——-

Eg. \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns() does not add tca columns if the target extension is loaded below your extending extension.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.