#17665span title appears in the recrd header
Description
Scenario:
the foreign config type is group/db;
the record title is cropped
then “<span title=” appears in record header
I think that the problem is the double call of the getRecordTitlePrep:
in the renderForeignRecordHeader function, if the foreign config type is group/db, it calls the getRecordTitle function
that calls getRecordTitlePrep; if the title is cropped it adds the tool tip
(a “<span title=” tag)
then the function renderForeignRecordHeader recalls getRecordTitlePrep
and the title is cropped again and it adds again the <span title tag
ciao,
Aldo
// Render title for everything else than group/db:
if ($foreignConfig[‘type’] != ‘groupdb’) {
$recTitle = t3lib_BEfunc::getProcessedValueExtra($foreign_table, $titleCol, $rec[$titleCol], 0, 0, false);
// Render title for group/db:
} else {
// $recTitle could be something like: “tx_table_123|…”,
$valueParts = t3lib_div::trimExplode(‘|’, $rec[$titleCol]);
$itemParts = t3lib_div::revExplode(‘_’, $valueParts0, 2);
$recTemp = t3lib_befunc::getRecordWSOL($itemParts0, $itemParts1);
$recTitle = t3lib_BEfunc::getRecordTitle($itemParts0, $recTemp, true);
}
$recTitle = t3lib_BEfunc::getRecordTitlePrep($recTitle);
(issue imported from #M6492)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.