|
@@ 1019-1023 (lines=5) @@
|
| 1016 |
|
$dataHandler->addRemapStackRefIndex($table, $id); |
| 1017 |
|
// Set log entry for live record: |
| 1018 |
|
$propArr = $dataHandler->getRecordPropertiesFromRow($table, $swapVersion); |
| 1019 |
|
if ($propArr['_ORIG_pid'] == -1) { |
| 1020 |
|
$label = $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_tcemain.xlf:version_swap.offline_record_updated'); |
| 1021 |
|
} else { |
| 1022 |
|
$label = $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_tcemain.xlf:version_swap.online_record_updated'); |
| 1023 |
|
} |
| 1024 |
|
$theLogId = $dataHandler->log($table, $id, 2, $propArr['pid'], 0, $label, 10, [$propArr['header'], $table . ':' . $id], $propArr['event_pid']); |
| 1025 |
|
$dataHandler->setHistory($table, $id, $theLogId); |
| 1026 |
|
// Update reference index of the offline record: |
|
@@ 1030-1034 (lines=5) @@
|
| 1027 |
|
$dataHandler->addRemapStackRefIndex($table, $swapWith); |
| 1028 |
|
// Set log entry for offline record: |
| 1029 |
|
$propArr = $dataHandler->getRecordPropertiesFromRow($table, $curVersion); |
| 1030 |
|
if ($propArr['_ORIG_pid'] == -1) { |
| 1031 |
|
$label = $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_tcemain.xlf:version_swap.offline_record_updated'); |
| 1032 |
|
} else { |
| 1033 |
|
$label = $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_tcemain.xlf:version_swap.online_record_updated'); |
| 1034 |
|
} |
| 1035 |
|
$theLogId = $dataHandler->log($table, $swapWith, 2, $propArr['pid'], 0, $label, 10, [$propArr['header'], $table . ':' . $swapWith], $propArr['event_pid']); |
| 1036 |
|
$dataHandler->setHistory($table, $swapWith, $theLogId); |
| 1037 |
|
|