|
@@ 4029-4031 (lines=3) @@
|
| 4026 |
|
// If the current field is set on a page record, update the pid of related child records: |
| 4027 |
|
if ($table === 'pages') { |
| 4028 |
|
$this->registerDBPids[$v['table']][$v['id']] = $uid; |
| 4029 |
|
} elseif (isset($this->registerDBPids[$table][$uid])) { |
| 4030 |
|
$this->registerDBPids[$v['table']][$v['id']] = $this->registerDBPids[$table][$uid]; |
| 4031 |
|
} |
| 4032 |
|
$dbAnalysis->itemArray[$k]['id'] = $newId; |
| 4033 |
|
} |
| 4034 |
|
// Store the new values, we will set up the uids for the subtype later on (exception keep localization from original record): |
|
@@ 6116-6119 (lines=4) @@
|
| 6113 |
|
// If the current field is set on a page record, update the pid of related child records: |
| 6114 |
|
if ($table === 'pages') { |
| 6115 |
|
$thePidToUpdate = $theUidToUpdate; |
| 6116 |
|
} elseif (isset($this->registerDBPids[$table][$uid])) { |
| 6117 |
|
$thePidToUpdate = $this->registerDBPids[$table][$uid]; |
| 6118 |
|
$thePidToUpdate = $this->copyMappingArray_merged['pages'][$thePidToUpdate]; |
| 6119 |
|
} |
| 6120 |
|
|
| 6121 |
|
// Update child records if change to pid is required (only if the current record is not on a workspace): |
| 6122 |
|
if ($thePidToUpdate) { |