Project

General

Profile

Bug #22970 » t3lib_befunc_getProcessedValue_show_item.patch

Administrator Admin, 2010-06-23 12:31

View differences:

t3lib/class.t3lib_befunc.php (Arbeitskopie)
$l = $GLOBALS['LANG']->sL($l);
break;
case 'select':
case 'inline':
if ($theColConf['MM']) {
// Display the title of MM related records in lists
if ($noRecordLookup) {
......
$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);
......
$lA[] = $rVal?'['.$rVal.'!]':'';
}
}
$l = implode(', ', $lA);
$l = implode('; ', $lA);
}
}
}
......
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':
typo3/show_item.php (Arbeitskopie)
$tableRows[] = '
<tr>
<td class="t3-col-header">' . $GLOBALS['LANG']->sL(t3lib_BEfunc::getItemLabel($this->table, $name), 1) . '</td>
<td>' . htmlspecialchars(t3lib_BEfunc::getProcessedValue($this->table, $name, $this->row[$name])) . '</td>
<td>' . htmlspecialchars(t3lib_BEfunc::getProcessedValue($this->table, $name, $this->row[$name], 0, 0, FALSE, $this->row['uid'])) . '</td>
</tr>';
}
}
(1-1/3)