Issue Bug Closed

#89902TCEFORM does not override child tca of an element

Cyril Janody 12/09/19, 22:36 updated 10/23/26, 09:04

Description

Hi,

Overriding child tca of an element via TsConfig is not working. Methods *PageTsConfig() in the TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider do not validate the parent field configuration which is available in $result.

Here is a sample of the current code:

    protected function removeItemsByKeepItemsPageTsConfig(array $result, $fieldName, array $items)
    {
        $table = $result['tableName'];
        if (!isset($result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'])
            || !is_string($result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'])
        ) {
            return $items;
        }
    ...

Regards
CJ

Reviews 0

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

History 4

  1. S P commented <span data-processor="relativetime" data-value="2021-03-01T07:25:55+00:00" > 03/01/21, 07:25 </span>

    I am missing this as well. However, this seems to be on purpose (so no “bug”):

    https://docs.typo3.org/m/typo3/reference-tsconfig/9.5/en-us/PageTsconfig/TceForm.html#config

    overideChildTca is not in the allowed config keys to be altered by TSconfig (and probbaly the parser is missing the logic anyways).

  2. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-10-23T09:04:40+00:00" > 10/23/26, 09:04 </span>

    closing as this is an edgecase, use the mentioned extension