Project

General

Profile

Actions

Bug #89475

closed

formEngine: overwriting field.label for inline records not possible

Added by Josef Glatz over 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2019-10-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
pending-close
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Problem

in TYPO3 9.5 overwriting a label of a column of an inline record isn't possible anymore.

The following TCA/Overrides configuration examples are working until TYPO3 8.7 LTS and are broken in 9.5 LTS

Override per $GLOBALS['TCA']['tt_content']['types']['typeName']['columnsOverrides']['fieldName']['config']['overrideChildTca']['columns']['fieldName']['label'] = 'New Label';

@$GLOBALS['TCA']['tt_content']['types']['myCustomCType'] => [
    ['columnsOverrides']['image']['config']['overrideChildTca'] => [
        ['columns'] => [
            ['description']['label'] = 'New Label for sys_file_reference field "description"';
        ],
    ],
];

(The above example works in TYPO3 8.7.latest)

Override per $GLOBALS['TCA']['tt_content']['types']['typeName']['columnsOverrides']['fieldName']['config']['overrideChildTca']['types']['typeName']['columnsOverrides']['fieldName']['label'] = 'New Label';

@$GLOBALS['TCA']['tt_content']['types']['myCustomCType'] => [
    ['columnsOverrides']['image']['config']['overrideChildTca'] => [
        ['types'] => [
            ['0']['columnsOverrides']['description']['label'] = 'New Label for sys_file_reference field "description" for type 0 (default)';
        ],
    ],
];

(The above example works in TYPO3 8.7.latest)

Actions #1

Updated by Josef Glatz over 4 years ago

  • Subject changed from formEngine overwriting field.label for inline records not possible to formEngine: overwriting field.label for inline records not possible
Actions #2

Updated by Nikita Hovratov almost 4 years ago

In my tests the first one works on both versions and current v10. The second one doesn't work on either versions. Is such a recursive columnsOverrides even possible?

Actions #3

Updated by Oliver Hader over 3 years ago

  • Tags changed from columnsOverrides, tca, ctypes, overrideChildTca to pending-close

Can this issue be closed?

Actions #4

Updated by Philipp Kitzberger over 2 years ago

I've just tested both snippets and can confirm they both work with TYPO3 9.5.30

Actions #5

Updated by Oliver Hader over 2 years ago

  • Status changed from New to Closed

Closing this issue. Feel free to reopen in case the problem occurs again.

Actions

Also available in: Atom PDF