Bug #17876 » 6875_v2.diff
t3lib/class.t3lib_tcemain.php (working copy) | ||
---|---|---|
// move the records
|
||
if (isset($dbAnalysis)) {
|
||
$firstRecord = TRUE;
|
||
foreach ($dbAnalysis->itemArray as $v) {
|
||
$this->moveRecord($v['table'],$v['id'],$destPid);
|
||
if ($firstRecord) {
|
||
$firstRecord = FALSE;
|
||
// Move record to new page
|
||
$dest = $destPid;
|
||
} else {
|
||
// Move record after previous record on new page
|
||
$dest = '-' . $previousId;
|
||
}
|
||
$previousId = $v['id'];
|
||
$this->moveRecord($v['table'], $v['id'], $dest);
|
||
}
|
||
}
|
||
}
|