Bug #17332
closedlabel field which is a relation is not human readable (the field is not resolved like in 4.0.x)
0%
Description
If you have a Table and the title of table is a field which is defined as Database relation to another table. The listview in the backend is not human readable.
Because the real fieldvalue is shown and not the title of the foreign table.
This was not the case in TYPO3 4.0.x
Use the attached testextension to test (table2 has relation to table1 with title field)
The reason is because of a change in
class.db_list_extra.inc
Since 4.1.1 the title comes from:
$recTitle = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE);
(line 596)
in 4.0.5 this was not the case:
$recTitle = t3lib_BEfunc::getProcessedValueExtra($table,$fCol,$row[$fCol],$GLOBALS['BE_USER']->uc['titleLen'],$row['uid']);
----------------
Solutionidea:
Change class.t3lib_befunc.php function getRecordTitle
(line 1833)
-$t = $row[$TCA[$table]['ctrl']['label']];
+$t_value = $row[$TCA[$table]['ctrl']['label']]; +$t=t3lib_BEfunc::getProcessedValueExtra($table,$TCA[$table]['ctrl']['label'],$t_value,$GLOBALS['BE_USER']->uc['titleLen'],$row['uid']);
Greetings
(issue imported from #M5683)
Files