Bug #22970 » 22970_v61_BackendUtility_getProcessedValue.patch
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);
|
||
}
|
||
}
|
||
}
|
- « Previous
- 1
- 2
- 3
- Next »