Project

General

Profile

Actions

Bug #67042

closed

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

Added by Arek van Schaijk over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2015-05-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF