Project

General

Profile

Actions

Bug #88778

open

Wrong label for IRRE children where child's label is again a relation to a field of TCA type selectTree

Added by Markus Klein almost 5 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2019-07-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.2
Tags:
CodingNight
Complexity:
hard
Is Regression:
Sprint Focus:

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.


Files

broken.jpg (5.16 KB) broken.jpg State in v8 Markus Klein, 2019-07-16 10:44
working.jpg (7.93 KB) working.jpg State in v7 Markus Klein, 2019-07-16 10:44

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #78744: TCA tree refactoringClosed2016-11-18

Actions
Actions #1

Updated by Markus Klein almost 5 years ago

Actions #2

Updated by Markus Klein almost 5 years ago

  • Description updated (diff)
Actions #4

Updated by Markus Klein almost 5 years ago

Within TcaSelectTreeItems the $result['selectTreeCompileItems'] is always false except for an AJAX call (see comment there).

This code part would build the items array of that field, which would be needed by \TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForSelectType in 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.

Actions #5

Updated by Susanne Moog over 4 years ago

  • Tags set to CodingNight
Actions #6

Updated by Susanne Moog over 1 year ago

  • Sprint Focus set to On Location Sprint
Actions #7

Updated by Oliver Hader over 1 year ago

  • Sprint Focus deleted (On Location Sprint)
Actions

Also available in: Atom PDF