Project

General

Profile

Bug #16961 » bug_4951.diff

Administrator Admin, 2007-02-11 16:16

View differences:

t3lib/class.t3lib_admin.php (Arbeitskopie)
if ($pid_list) {
while (list($table)=each($TCA)) {
t3lib_div::loadTCA($table);
$pid_list_tmp = $pid_list;
if ($TCA[$table]['ctrl']['versioningWS']) {
$pid_list_tmp = preg_replace('/^\-1,/','',$pid_list_tmp);
}
$garbage = $GLOBALS['TYPO3_DB']->exec_SELECTquery (
'uid,pid,'.$TCA[$table]['ctrl']['label'],
$table,
'pid NOT IN ('.$pid_list.')'
'pid NOT IN ('.$pid_list_tmp.')'
);
$lostIdList=Array();
$lostIdList = array();
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($garbage)) {
$this->lRecords[$table][$row['uid']]=Array('uid'=>$row['uid'], 'pid'=>$row['pid'], 'title'=> strip_tags($row[$TCA[$table]['ctrl']['label']]) );
$lostIdList[]=$row['uid'];
(2-2/2)