Bug #19428
closedlabel uid shows not working
0%
Description
$TCA['xxx'] = array (
'ctrl' => array (
'label' => 'uid',
....
in web->listview the labes shows 'no title' ('Kein Titel').
(issue imported from #M9506)
Files
Updated by Markijan no-lastname-given about 16 years ago
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")]
Updated by Oliver Hader about 16 years ago
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!
Updated by Markijan no-lastname-given about 16 years ago
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.
Updated by Jan Perdoch almost 16 years ago
I uploaded diff file with my solution for uid label and I hope it help.
Updated by Steffen Kamper almost 16 years ago
i uploaded new patch. For uid there is no need to load TCA, so save performance and return the value.
Updated by Steffen Kamper almost 16 years ago
committed to 4_1 and trunk, rev 4650/4651