Project

General

Profile

Actions

Bug #24317

closed

Bug #21410: t3lib_BEfunc::getProcessedValue does not show record title for foreign elements for type group / db

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

Added by Thomas Deinhamer over 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2010-12-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)


Files

records.jpg (166 KB) records.jpg Navi , 2011-07-06 13:00
Actions

Also available in: Atom PDF