Index: t3lib/class.t3lib_befunc.php =================================================================== --- t3lib/class.t3lib_befunc.php (Revision 8049) +++ t3lib/class.t3lib_befunc.php (Arbeitskopie) @@ -2172,6 +2172,7 @@ $l = $GLOBALS['LANG']->sL($l); break; case 'select': + case 'inline': if ($theColConf['MM']) { // Display the title of MM related records in lists if ($noRecordLookup) { @@ -2211,10 +2212,28 @@ $l = self::getLabelFromItemlist($table, $col, $value); $l = $GLOBALS['LANG']->sL($l); if ($theColConf['foreign_table'] && !$l && $TCA[$theColConf['foreign_table']]) { - if ($noRecordLookup) { + if ($noRecordLookup || ((string)$theColConf['type'] == 'inline' && !$uid)) { $l = $value; } else { - $rParts = t3lib_div::trimExplode(',', $value, 1); + if((string)$theColConf['type'] == 'inline') { + $rParts = array(); + // Look up for records + $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery( + 'ref_uid', + 'sys_refindex', + 'tablename='.$GLOBALS['TYPO3_DB']->fullQuoteStr($table,'sys_refindex'). + ' AND recuid='.intval($uid). + ' AND ref_table='.$GLOBALS['TYPO3_DB']->fullQuoteStr($theColConf['foreign_table'],'sys_refindex'), + '', + 'sorting' + ); + while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { + $rParts[] = $row['ref_uid']; + } + } + else { + $rParts = t3lib_div::trimExplode(',', $value, 1); + } $lA = array(); foreach ($rParts as $rVal) { $rVal = intval($rVal); @@ -2229,7 +2248,7 @@ $lA[] = $rVal?'['.$rVal.'!]':''; } } - $l = implode(', ', $lA); + $l = implode('; ', $lA); } } } @@ -2245,7 +2264,7 @@ foreach ($theColConf['items'] as $key => $val) { if ($value & pow(2, $key)) {$lA[] = $GLOBALS['LANG']->sL($val[0]);} } - $l = implode(', ', $lA); + $l = implode('; ', $lA); } break; case 'input': Index: typo3/show_item.php =================================================================== --- typo3/show_item.php (Revision 8049) +++ typo3/show_item.php (Arbeitskopie) @@ -286,7 +286,7 @@ $tableRows[] = '