Bug #22970 » 22970_v45_t3lib_befunc_getProcessedValue.patch
t3lib/class.t3lib_befunc.php | ||
---|---|---|
$l = $GLOBALS['LANG']->sL($l);
|
||
break;
|
||
case 'select':
|
||
case 'inline':
|
||
if ($theColConf['MM']) {
|
||
if ($uid) {
|
||
// Display the title of MM related records in lists
|
||
... | ... | |
$l = self::getLabelsFromItemsList($table, $col, $value);
|
||
if ($theColConf['foreign_table'] && !$l && $TCA[$theColConf['foreign_table']]) {
|
||
if ($noRecordLookup) {
|
||
if ($noRecordLookup || ($theColConf['type'] === 'inline' && !$uid)) {
|
||
$l = $value;
|
||
} else {
|
||
$rParts = t3lib_div::trimExplode(',', $value, 1);
|
||
if ($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);
|
||
... | ... | |
$lA[] = $rVal ? '[' . $rVal . '!]' : '';
|
||
}
|
||
}
|
||
$l = implode(', ', $lA);
|
||
$l = implode('; ', $lA);
|
||
}
|
||
}
|
||
}
|