Project

General

Profile

Bug #12505 ยป 12505_v1.diff

Susanne Moog, 2011-01-24 20:45

View differences:

class.tx_version_tcemain.php (Arbeitskopie)
// Versionize this page:
$theNewRootID = $tcemainObj->versionizeRecord('pages', $uid, $label, FALSE, $versionizeTree);
if ($theNewRootID) {
$tcemainObj->rawCopyPageContent($uid, $theNewRootID, $verTablesArray, $tcemainObj);
$this->rawCopyPageContent($uid, $theNewRootID, $verTablesArray, $tcemainObj);
// If we're going to copy recursively...:
if ($versionizeTree > 0) {
......
$newPid = $tcemainObj->copyMappingArray['pages'][$thePagePid];
if (isset($newPid)) {
$theNewRootID = $tcemainObj->copyRecord_raw('pages', $thePageUid, $newPid);
$tcemainObj->rawCopyPageContent($thePageUid, $theNewRootID, $verTablesArray, $tcemainObj);
$this->rawCopyPageContent($thePageUid, $theNewRootID, $verTablesArray, $tcemainObj);
} else {
$tcemainObj->newlog('Something went wrong during copying branch (for versioning)', 1);
break;
    (1-1/1)