#88778Wrong label for IRRE children where child's label is again a relation to a field of TCA type selectTree
Description
Setup description
Record “Project” is a 1:n relation with Record “Assignment”
Project::assignments => TCA type inline of Assignment
TCA|ctrl|label of Assignment is the field “category”.
Assignment::category has this TCA:
'config' => [
'type' => 'select',
'renderType' => 'selectTree',
'foreign_table' => 'sys_category',
'foreign_table_where' => 'AND sys_category.pid IN (###PAGE_TSCONFIG_IDLIST###) AND sys_category.sys_language_uid IN (-1, 0) ORDER BY sys_category.sorting ASC',
'items' => [],
'minitems' => 1,
'maxitems' => 1,
'treeConfig' => [
'parentField' => 'parent',
'appearance' => [
'expandAll' => true,
'showHeader' => true,
'maxLevels' => 2,
'nonSelectableLevels' => '0,1'
],
]
],
Expected behaviour
Opening a record of Project should show the category-title in the header of the IRRE-element.
(This is working in TYPO3 v7)
Current behaviour
Opening a record of Project shows the category-uid in the header of the IRRE-element.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 2
Files 2
History 9
-
Markus Klein changed Related to #78744 <span data-processor="relativetime" data-value="2019-07-16T10:40:06+00:00" > 07/16/19, 10:40 </span>
-
Markus Klein changed description <span data-processor="relativetime" data-value="2019-07-16T10:41:47+00:00" > 07/16/19, 10:41 </span>
-
Markus Klein changed attached broken.jpg attached working.jpg <span data-processor="relativetime" data-value="2019-07-16T10:44:49+00:00" > 07/16/19, 10:44 </span>
-
Susanne Moog changed Tags CodingNight <span data-processor="relativetime" data-value="2019-08-02T19:27:56+00:00" > 08/02/19, 19:27 </span>
-
Susanne Moog changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2022-08-05T13:36:51+00:00" > 08/05/22, 13:36 </span>
-
Oliver Hader changed Sprint Focus
On Location Sprint<span data-processor="relativetime" data-value="2022-11-03T09:04:21+00:00" > 11/03/22, 09:04 </span> -
Benni Mack changed Related to #109366 <span data-processor="relativetime" data-value="2026-11-06T10:31:57+00:00" > 11/06/26, 10:31 </span>
-
Benni Mack commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-06T10:35:18+00:00" > 11/06/26, 10:35 </span>Fixed on main since v14.2.0 as a side effect of #109366 / 4c4ca796c60 (Hide FormEngine fields with no selectable items): TcaSelectTreeItems now always resolves the flat item list, so TcaRecordTitle can resolve the label of selectTree fields, both for IRRE child headers and the edit form title. Closing. 13.4 is still affected; please open a dedicated issue if a backport-able fix for 13.4 is needed.
Within
TcaSelectTreeItemsthe$result['selectTreeCompileItems']is alwaysfalseexcept for an AJAX call (see comment there).This code part would build the
itemsarray of that field, which would be needed by\TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForSelectTypein order to create the record title.I’m sure building the items can be a rather resource intensive task, hence it is disabled. It would probably needs some different way to fetch the label efficiently for the IRRE header.