Index: t3lib/class.t3lib_tcemain.php =================================================================== --- t3lib/class.t3lib_tcemain.php (révision 9663) +++ t3lib/class.t3lib_tcemain.php (copie de travail) @@ -3688,8 +3688,8 @@ $this->moveRecord_procFields($table,$uid,$destPid); // Create query for update: $GLOBALS['TYPO3_DB']->exec_UPDATEquery($table, 'uid='.intval($uid), $updateFields); - // check for the localizations of that element - $this->moveL10nOverlayRecords($table, $uid, $destPid); + // Move the localizations of that element just after the element + $this->moveL10nOverlayRecords($table, $uid, -$uid); // Call post processing hooks: foreach($hookObjectsArr as $hookObj) { @@ -3711,8 +3711,6 @@ } $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. } 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']); @@ -3733,8 +3731,8 @@ $this->moveRecord_procFields($table,$uid,$destPid); // Create query for update: $GLOBALS['TYPO3_DB']->exec_UPDATEquery($table, 'uid='.intval($uid), $updateFields); - // check for the localizations of that element - $this->moveL10nOverlayRecords($table, $uid, $destPid); + // Move the localizations of that element just after the element + $this->moveL10nOverlayRecords($table, $uid, -$uid); // Call post processing hooks: foreach($hookObjectsArr as $hookObj) { @@ -3759,9 +3757,6 @@ // fixUniqueInPid $this->fixUniqueInPid($table,$uid); - - // fixCopyAfterDuplFields - 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']);