Issue Bug Closed

#59397Extbase FrontendUser does not work with the TCA caching feature (6.2.1)

Jost Baron 06/06/14, 22:27 updated 10/02/18, 11:56

Description

I use the following code to add a field to the fe_users table:

$newColumns = array( 'ratings' => array( 'label' => $lll . 'somelabel', 'config' => array( 'readOnly' => '1', 'type' => 'select', 'foreign_table' => 'mytable', 'foreign_field' => 'somefield', 'maxitems' => '1000000', 'minitems' => '0', 'autoSizeMax' => '20', ), ), ); ExtensionManagementUtility::addTCAcolumns('fe_users', $newColumns); // Add types to the TCA $recordType = 'MyRecordType'; $GLOBALS['TCA']['fe_users']['types'][$recordType] = $GLOBALS['TCA']['fe_users']['types']['0']; $GLOBALS['TCA']['fe_users']['columns']['tx_extbase_type']['config']['items'][] = array( $lll . 'anotherlabel', $recordType ); ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'ratings', $recordType, 'after:tx_extbase_type');

This does work if used in ext_tables.php, but not if used in Configuration/TCA/Overrides. In the latter case, it seems that the ext_tables.php from Extbase is executed later and overwrites my changes (especially the types part).

Regards Jost

Reviews 1