|
@@ 6172-6174 (lines=3) @@
|
| 6169 |
|
// Replace NEW...-ID with real uid: |
| 6170 |
|
$id = $this->substNEWwithIDs[$id]; |
| 6171 |
|
// If the new parent record is on a non-live workspace or versionized, it has another new id: |
| 6172 |
|
if (isset($this->autoVersionIdMap[$table][$id])) { |
| 6173 |
|
$id = $this->autoVersionIdMap[$table][$id]; |
| 6174 |
|
} |
| 6175 |
|
$remapAction['args'][$remapAction['pos']['id']] = $id; |
| 6176 |
|
} |
| 6177 |
|
// Replace relations to NEW...-IDs in field value (uids of child records): |
|
@@ 8839-8841 (lines=3) @@
|
| 8836 |
|
public function getAutoVersionId($table, $id) |
| 8837 |
|
{ |
| 8838 |
|
$result = null; |
| 8839 |
|
if (isset($this->autoVersionIdMap[$table][$id])) { |
| 8840 |
|
$result = $this->autoVersionIdMap[$table][$id]; |
| 8841 |
|
} |
| 8842 |
|
return $result; |
| 8843 |
|
} |
| 8844 |
|
|