Bug #17919 » 0006954-historyDuringPublishing_v2.patch
t3lib/class.t3lib_tcemain.php (working copy) | ||
---|---|---|
// Registering and swapping MM relations in current and swap records:
|
||
$this->version_remapMMForVersionSwap($table,$id,$swapWith);
|
||
// Generating proper history data to prepare logging
|
||
$this->compareFieldArrayWithCurrentAndUnset($table, $id, $swapVersion);
|
||
$this->compareFieldArrayWithCurrentAndUnset($table, $swapWith, $curVersion);
|
||
// Execute swapping:
|
||
$sqlErrors = array();
|
||
$GLOBALS['TYPO3_DB']->exec_UPDATEquery($table,'uid='.intval($id),$swapVersion);
|
||
... | ... | |
$this->newlog2(($swapIntoWS ? 'Swapping' : 'Publishing').' successful for table "'.$table.'" uid '.$id.'=>'.$swapWith, $table, $id, $swapVersion['pid']);
|
||
// Update reference index:
|
||
// Update reference index of the live record:
|
||
$this->updateRefIndex($table,$id);
|
||
// Set log entry for live record:
|
||
$propArr = $this->getRecordPropertiesFromRow($table, $swapVersion);
|
||
if ( $propArr['_ORIG_pid'] == -1) {
|
||
$label = $GLOBALS['LANG']->sL ('LLL:EXT:lang/locallang_tcemain.xml:version_swap.offline_record_updated');
|
||
} else {
|
||
$label = $GLOBALS['LANG']->sL ('LLL:EXT:lang/locallang_tcemain.xml:version_swap.online_record_updated');
|
||
}
|
||
$theLogId = $this->log($table, $id, 2, $propArr['pid'], 0, $label , 10, array($propArr['header'], $table . ':' . $id), $propArr['event_pid']);
|
||
$this->setHistory($table, $id, $theLogId);
|
||
// Update reference index of the offline record:
|
||
$this->updateRefIndex($table,$swapWith);
|
||
// Set log entry for offline record:
|
||
$propArr = $this->getRecordPropertiesFromRow($table, $curVersion);
|
||
if ( $propArr['_ORIG_pid'] == -1) {
|
||
$label = $GLOBALS['LANG']->sL ('LLL:EXT:lang/locallang_tcemain.xml:version_swap.offline_record_updated');
|
||
} else {
|
||
$label = $GLOBALS['LANG']->sL ('LLL:EXT:lang/locallang_tcemain.xml:version_swap.online_record_updated');
|
||
}
|
||
$theLogId = $this->log($table, $swapWith, 2, $propArr['pid'], 0, $label , 10, array($propArr['header'], $table . ':'. $swapWith), $propArr['event_pid']);
|
||
$this->setHistory($table, $swapWith, $theLogId);
|
||
// SWAPPING pids for subrecords:
|
||
if ($table=='pages' && $swapVersion['t3ver_swapmode']>=0) {
|
typo3/sysext/lang/locallang_tcemain.xml (revision 0) | ||
---|---|---|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||
<T3locallang>
|
||
<meta type="array">
|
||
<description>Labels for all messages which are passed around within the tcemain-processing..</description>
|
||
<type>database</type>
|
||
</meta>
|
||
<data type="array">
|
||
<languageKey index="default" type="array">
|
||
<label index="version_swap.online_record_updated">Record '%s' (%s) was updated. (Online version)</label>
|
||
<label index="version_swap.offline_record_updated">Record '%s' (%s) was updated. (Offline version)</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|
- « Previous
- 1
- 2
- Next »