17284.patch

Benni Mack, 2011-05-12 05:04

Download (936 Bytes)

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php
7380 7380
		$queryParts = $this->getWhere($table, $conf, TRUE);
7381 7381

  
7382 7382
			// Fields:
7383
		$queryParts['SELECT'] = $conf['selectFields'] ? $conf['selectFields'] : '*';
7383
		if ($conf['selectFields']) {
7384
			$queryParts['SELECT'] = $conf['selectFields'];
7385
				// add uid, pid and t3ver_state in order to allow 
7386
				// versioning for TCA-based table
7387
			if (isset($GLOBALS['TCA'][$table])) {
7388
				$queryParts['SELECT'] .= ',uid,pid';
7389
				if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS']) {
7390
					$queryParts['SELECT'] .= ',t3ver_state';
7391
				}
7392
			}
7393
		} else {
7394
			$queryParts['SELECT'] = '*';
7395
		}
7384 7396

  
7385 7397
			// Setting LIMIT:
7386 7398
		if ($conf['max'] || $conf['begin']) {