Issue Bug Closed

#24317TCA parameter "label_alt" does not resolve foreign table label for 1:n relations on group fields

Thomas Deinhamer 12/10/10, 11:52 updated 10/24/17, 20:20

Description

I have set ‘label’ to a text field called ‘title’ – works.
I have set ‘label_alt’ to a field of type ‘group/db’ and
’label_alt_force’ to ‘TRUE’ – does not work.

Instead of displaying the label field of the other table
the raw value (the record’s uid) is shown.

The record gets listed this way in the backend:
“My record’s title, 23”

Instead of 23 the relation should get resolved to the
record of the other table and the label-field’s value should be shown.

I’ll post the TCA as additional information here,
the field ‘client’ is the one which doesn’t get resolved.
Instead only the id of the record is shown.

I think this behaves correct if using a field
of type ‘select’ instead of ‘group’.

$TCA[‘tx_hypeshowcase_domain_model_project’] = array(
‘ctrl’ => array(
‘title’ => ‘LLL:EXT:hype_showcase/Resources/Private/Language/locallang_db.xml:tx_hypeshowcase_domain_model_project’,
‘label’ => ‘title’,
‘label_alt’ => ‘client’,
‘label_alt_force’ => TRUE,
‘tstamp’ => ‘tstamp’,
‘crdate’ => ‘crdate’,
‘cruser_id’ => ‘cruser_id’,
‘sortby’ => ‘sorting’,
‘delete’ => ‘deleted’,
‘enablecolumns’ => array(
‘disabled’ => ‘hidden’,
‘starttime’ => ‘starttime’,
‘endtime’ => ‘endtime’,
),
‘dynamicConfigFile’ => t3lib_extMgm::extPath($_EXTKEY) . ‘Configuration/TCA/tca.php’,
‘iconfile’ => t3lib_extMgm::extRelPath($_EXTKEY) . ‘Configuration/TCA/Icons/project.png’,
‘dividers2tabs’ => TRUE,
),
);
(issue imported from #M16716)

Reviews 0

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