Bug #19428
closed
label uid shows not working
Added by Carsten no-lastname-given about 16 years ago.
Updated about 6 years ago.
Description
$TCA['xxx'] = array (
'ctrl' => array (
'label' => 'uid',
....
in web->listview the labes shows 'no title' ('Kein Titel').
(issue imported from #M9506)
Files
Can confirm this (typo3 ver. 4.2.1, php ver. 5.2.0)
web->listview the labels shows [No title] instead record uid - is not big problem.
Much bigger problem is impossibility to work in with TCA foreign_table relations build by uid (in BE form dropdowns all foreign table records labeled with [No title]).
And also editing records with previously created relations cause warning:
[ INVALID VALUE ("old stored uid")]
Markijan, your problem seems to be different - could you please open a new bug report on it and give some detailed information where this occurs and how to reproduce it... Thanks!
No Oliver, this is exactly the same issue:
In List view records with label 'label' => 'uid' shown with [No title] instead uid.
Also the same title is not shown in foreign table relation fields in be forms.
How to reproduce: create any custom table or change for any table in file ext_tables.php in $TCA to 'label' => 'uid'.
I think this is related with t3lib_BEfunc::getProcessedValue which process value only when table and field is configured $TCA[$table]['columns'][$col]
Line 2067:
// Check if table and field is configured:
if (is_array($TCA[$table]) && is_array($TCA[$table]['columns'][$col])) {
And because there is no configuration for 'uid' in TCA - this function return nothing... <- this is bug
I think on line 2215 of class.t3lib_befunc.php ned to be added else {} condition for labels/fields not configured in TCA.
I uploaded diff file with my solution for uid label and I hope it help.
Uploaded new and correct diff.
i uploaded new patch. For uid there is no need to load TCA, so save performance and return the value.
committed to 4_1 and trunk, rev 4650/4651
- Status changed from Resolved to Closed
Also available in: Atom
PDF