|
@@ 406-414 (lines=9) @@
|
| 403 |
|
|
| 404 |
|
$fromId = $fromRecord['uid']; |
| 405 |
|
// retrieve value from in-memory data-map |
| 406 |
|
if ($this->isSetInDataMap($item->getTableName(), $fromId, $fieldName)) { |
| 407 |
|
$fromValue = $this->allDataMap[$item->getTableName()][$fromId][$fieldName]; |
| 408 |
|
} elseif (array_key_exists($fieldName, $fromRecord)) { |
| 409 |
|
// retrieve value from record |
| 410 |
|
$fromValue = $fromRecord[$fieldName]; |
| 411 |
|
} else { |
| 412 |
|
// otherwise abort synchronization |
| 413 |
|
return; |
| 414 |
|
} |
| 415 |
|
|
| 416 |
|
// plain values |
| 417 |
|
if (!$this->isRelationField($item->getTableName(), $fieldName)) { |
|
@@ 445-449 (lines=5) @@
|
| 442 |
|
$isSpecialLanguageField = ($configuration['config']['special'] ?? null) === 'languages'; |
| 443 |
|
|
| 444 |
|
$fromId = $fromRecord['uid']; |
| 445 |
|
if ($this->isSetInDataMap($item->getTableName(), $fromId, $fieldName)) { |
| 446 |
|
$fromValue = $this->allDataMap[$item->getTableName()][$fromId][$fieldName]; |
| 447 |
|
} else { |
| 448 |
|
$fromValue = $fromRecord[$fieldName]; |
| 449 |
|
} |
| 450 |
|
|
| 451 |
|
// non-MM relations are stored as comma separated values, just use them |
| 452 |
|
// if values are available in data-map already, just use them as well |