Project

General

Profile

Bug #16845 » 0004759.patch

Administrator Admin, 2007-01-10 20:03

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
$this->clear_cache($table,$uid); // clear cache after moving
$this->fixUniqueInPid($table,$uid);
// fixCopyAfterDuplFields
if ($origDestPid<0) {$this->fixCopyAfterDuplFields($table,$uid,abs($origDestPid),1);} // origDestPid is retrieve before it may possibly be converted to resolvePid if the table is not sorted anyway. In this way, copying records to after another records which are not sorted still lets you use this function in order to copy fields from the one before.
// @TODO: copy vs. move?!
// if ($origDestPid<0) {$this->fixCopyAfterDuplFields($table,$uid,abs($origDestPid),1);} // origDestPid is retrieve before it may possibly be converted to resolvePid if the table is not sorted anyway. In this way, copying records to after another records which are not sorted still lets you use this function in order to copy fields from the one before.
} else {
$destPropArr = $this->getRecordProperties('pages',$destPid);
$this->log($table,$uid,4,0,1,"Attempt to move page '%s' (%s) to inside of its own rootline (at page '%s' (%s))",10,array($propArr['header'],$uid, $destPropArr['header'], $destPid),$propArr['pid']);
......
$this->fixUniqueInPid($table,$uid);
// fixCopyAfterDuplFields
if ($origDestPid<0) {$this->fixCopyAfterDuplFields($table,$uid,abs($origDestPid),1);}
// @TODO: copy vs. move?!
// if ($origDestPid<0) {$this->fixCopyAfterDuplFields($table,$uid,abs($origDestPid),1);}
} else {
$destPropArr = $this->getRecordProperties('pages',$destPid);
$this->log($table,$uid,4,0,1,"Attempt to move page '%s' (%s) to inside of its own rootline (at page '%s' (%s))",10,array($propArr['header'],$uid, $destPropArr['header'], $destPid),$propArr['pid']);
(1-1/4)