|
@@ 319-325 (lines=7) @@
|
| 316 |
|
if ($dataHandler->BE_USER->workspace === 0) { |
| 317 |
|
return; |
| 318 |
|
} |
| 319 |
|
if ($destPid < 0) { |
| 320 |
|
// Fetch move placeholder, since it might point to a new page in the current workspace |
| 321 |
|
$movePlaceHolder = BackendUtility::getMovePlaceholder($table, abs($destPid), 'uid,pid'); |
| 322 |
|
if ($movePlaceHolder !== false) { |
| 323 |
|
$resolvedPid = $movePlaceHolder['pid']; |
| 324 |
|
} |
| 325 |
|
} |
| 326 |
|
$recordWasMoved = true; |
| 327 |
|
$moveRecVersionState = VersionState::cast($moveRec['t3ver_state']); |
| 328 |
|
// Get workspace version of the source record, if any: |
|
@@ 1562-1567 (lines=6) @@
|
| 1559 |
|
// If a record gets moved after a record that already has a placeholder record |
| 1560 |
|
// then the new placeholder record needs to be after the existing one |
| 1561 |
|
$originalRecordDestinationPid = $destPid; |
| 1562 |
|
if ($destPid < 0) { |
| 1563 |
|
$movePlaceHolder = BackendUtility::getMovePlaceholder($table, abs($destPid), 'uid'); |
| 1564 |
|
if ($movePlaceHolder !== false) { |
| 1565 |
|
$destPid = -$movePlaceHolder['uid']; |
| 1566 |
|
} |
| 1567 |
|
} |
| 1568 |
|
if ($plh = BackendUtility::getMovePlaceholder($table, $uid, 'uid')) { |
| 1569 |
|
// If already a placeholder exists, move it: |
| 1570 |
|
$dataHandler->moveRecord_raw($table, $plh['uid'], $destPid); |