The row details view in the Workspaces module is based on two arrays
containing only the changed fields, one with the Live value of the
fields and one with the diff'ed values. These arrays do not contain
any reference to the name of the fields, only to their labels.
Add an extra entry for each difference, containing the field name.
Change-Id: Ie2b4088a568a4f9880afdf44e3b5f95cf95215fc
Resolves: #27442
Releases: 4.6, 4.5
$liveThumb = t3lib_BEfunc::thumbCode($liveRecord, $parameter->table, $fieldName, '');
$diffReturnArray[] = array(
+ 'field' => $fieldName,
'label' => $fieldTitle,
'content' => $versionThumb
);
$liveReturnArray[] = array(
+ 'field' => $fieldName,
'label' => $fieldTitle,
'content' => $liveThumb
);
} else {
$diffReturnArray[] = array(
+ 'field' => $fieldName,
'label' => $fieldTitle,
'content' => $t3lib_diff->makeDiffDisplay($liveRecord[$fieldName], $versionRecord[$fieldName]) // call diff class to get diff
);
$liveReturnArray[] = array(
+ 'field' => $fieldName,
'label' => $fieldTitle,
'content' => $liveRecord[$fieldName]
);
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/Server.php'])) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/Server.php']);
}
-?>
\ No newline at end of file
+?>