Bug #20758 ยป 11539.patch
t3lib/class.t3lib_tcemain.php (working copy) | ||
---|---|---|
$createNewVersion = FALSE;
|
||
$recordAccess = FALSE;
|
||
$old_pid_value = '';
|
||
$resetRejected = FALSE;
|
||
$this->autoVersioningUpdate = FALSE;
|
||
if (!t3lib_div::testInt($id)) { // Is it a new record? (Then Id is a string)
|
||
... | ... | |
$tempdata = $this->recordInfo($table,$id,'pid'.($TCA[$table]['ctrl']['versioningWS']?',t3ver_wsid,t3ver_stage':''));
|
||
$theRealPid = $tempdata['pid'];
|
||
// Prepare the reset of the rejected flag if set:
|
||
if ($TCA[$table]['ctrl']['versioningWS'] && $tempdata['t3ver_stage']<0) {
|
||
$resetRejected = TRUE;
|
||
}
|
||
// Use the new id of the versionized record we're trying to write to:
|
||
// (This record is a child record of a parent and has already been versionized.)
|
||
if ($this->autoVersionIdMap[$table][$id]) {
|
||
... | ... | |
$fieldArray[$TCA[$table]['ctrl']['tstamp']]=time();
|
||
if ($createNewVersion) $newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['tstamp']]=time();
|
||
}
|
||
if ($resetRejected) {
|
||
if ($TCA[$table]['ctrl']['versioningWS']) {
|
||
$fieldArray['t3ver_stage'] = 0;
|
||
}
|
||