Project

General

Profile

Bug #22970 » 22970_v61_BackendUtility_getProcessedValue.patch

Caspar Stuebs, 2013-10-21 12:13

View differences:

typo3/sysext/backend/Classes/Utility/BackendUtility.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
......
} else {
$l = self::getLabelsFromItemsList($table, $col, $value);
if ($theColConf['foreign_table'] && !$l && $GLOBALS['TCA'][$theColConf['foreign_table']]) {
if ($noRecordLookup) {
if ($noRecordLookup || ($theColConf['type'] === 'inline' && !$uid)) {
$l = $value;
} else {
$rParts = \TYPO3\CMS\Core\Utility\GeneralUtility::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 = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $value, 1);
}
$lA = array();
foreach ($rParts as $rVal) {
$rVal = intval($rVal);
......
$lA[] = $rVal ? '[' . $rVal . '!]' : '';
}
}
$l = implode(', ', $lA);
$l = implode('; ', $lA);
}
}
}
(3-3/3)