Project

General

Profile

Bug #17284 ยป 17284.patch

Benni Mack, 2011-05-12 05:04

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php
$queryParts = $this->getWhere($table, $conf, TRUE);
// Fields:
$queryParts['SELECT'] = $conf['selectFields'] ? $conf['selectFields'] : '*';
if ($conf['selectFields']) {
$queryParts['SELECT'] = $conf['selectFields'];
// add uid, pid and t3ver_state in order to allow
// versioning for TCA-based table
if (isset($GLOBALS['TCA'][$table])) {
$queryParts['SELECT'] .= ',uid,pid';
if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS']) {
$queryParts['SELECT'] .= ',t3ver_state';
}
}
} else {
$queryParts['SELECT'] = '*';
}
// Setting LIMIT:
if ($conf['max'] || $conf['begin']) {
    (1-1/1)