|
@@ 4007-4015 (lines=9) @@
|
| 4004 |
|
(isset($workspaceOptions['delete']) ? $workspaceOptions['delete'] : false) |
| 4005 |
|
); |
| 4006 |
|
// Otherwise just use plain copyRecord() to create placeholders etc. |
| 4007 |
|
} else { |
| 4008 |
|
// If a record has been copied already during this request, |
| 4009 |
|
// prevent superfluous duplication and use the existing copy |
| 4010 |
|
if (isset($this->copyMappingArray[$v['table']][$v['id']])) { |
| 4011 |
|
$newId = $this->copyMappingArray[$v['table']][$v['id']]; |
| 4012 |
|
} else { |
| 4013 |
|
$newId = $this->copyRecord($v['table'], $v['id'], $realDestPid); |
| 4014 |
|
} |
| 4015 |
|
} |
| 4016 |
|
} else { |
| 4017 |
|
// If a record has been copied already during this request, |
| 4018 |
|
// prevent superfluous duplication and use the existing copy |
|
@@ 4016-4024 (lines=9) @@
|
| 4013 |
|
$newId = $this->copyRecord($v['table'], $v['id'], $realDestPid); |
| 4014 |
|
} |
| 4015 |
|
} |
| 4016 |
|
} else { |
| 4017 |
|
// If a record has been copied already during this request, |
| 4018 |
|
// prevent superfluous duplication and use the existing copy |
| 4019 |
|
if (isset($this->copyMappingArray[$v['table']][$v['id']])) { |
| 4020 |
|
$newId = $this->copyMappingArray[$v['table']][$v['id']]; |
| 4021 |
|
} else { |
| 4022 |
|
$newId = $this->copyRecord_raw($v['table'], $v['id'], $realDestPid, [], $workspaceOptions); |
| 4023 |
|
} |
| 4024 |
|
} |
| 4025 |
|
} |
| 4026 |
|
// If the current field is set on a page record, update the pid of related child records: |
| 4027 |
|
if ($table === 'pages') { |