Project

General

Profile

Bug #21797 » 12928-deleted-records.patch

Administrator Admin, 2009-12-11 11:37

View differences:

t3lib/class.t3lib_befunc.php (working copy)
$GLOBALS['TCA'][$table]['ctrl']['languageField'] &&
$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'] &&
!$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerTable']) {
$where = $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'] . '=' . intval($ref) .
' AND ' . $GLOBALS['TCA'][$table]['ctrl']['languageField'] . '!=0' ;
if (!empty($GLOBALS['TCA'][$table]['ctrl']['delete'])) {
$where .= ' AND ' . $GLOBALS['TCA'][$table]['ctrl']['delete'] . '=0';
}
$count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows(
'*',
$table,
$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'] . '=' . intval($ref) .
' AND ' . $GLOBALS['TCA'][$table]['ctrl']['languageField'] . '!=0' .
' AND ' . $GLOBALS['TCA'][$table]['ctrl']['delete'] . '=0'
$where
);
}
(1-1/2)