...
 
Commits (2)
......@@ -190,7 +190,8 @@ class InlineRecordContainer extends AbstractContainer
$tableUniqueOriginalValue = '';
if (isset($data['inlineData']['unique'][$domObjectId . '-' . $foreignTable]['used'][$record['uid']])) {
$uniqueValueValues = $data['inlineData']['unique'][$domObjectId . '-' . $foreignTable]['used'][$record['uid']];
$tableUniqueOriginalValue = $uniqueValueValues['table'] . '_' . $uniqueValueValues['uid'];
// in case of site_language we don't have the full form engine options, so fallbacks need to be taken into account
$tableUniqueOriginalValue = ($uniqueValueValues['table'] ?? $foreignTable) . '_' . ($uniqueValueValues['uid'] ?? $uniqueValueValues);
}
$html = '
<div class="panel panel-default panel-condensed ' . trim($class) . '" id="' . htmlspecialchars($objectId) . '_div" data-table-unique-original-value="' . htmlspecialchars($tableUniqueOriginalValue) . '">
......
......@@ -177,7 +177,8 @@ class GridDataService implements LoggerAwareInterface
$versionArray['label_prevStage'] = htmlspecialchars($stagesObj->getStageTitle($tempStage['uid']));
$versionArray['value_prevStage'] = (int)$tempStage['uid'];
$versionArray['path_Live'] = htmlspecialchars(BackendUtility::getRecordPath($record['livepid'], '', 999));
$versionArray['path_Workspace'] = htmlspecialchars(BackendUtility::getRecordPath($record['wspid'], '', 999));
// no htmlspecialchars necessary as this is only used in JS via text function
$versionArray['path_Workspace'] = BackendUtility::getRecordPath($record['wspid'], '', 999);
$versionArray['workspace_Title'] = htmlspecialchars(WorkspaceService::getWorkspaceTitle($versionRecord['t3ver_wsid']));
$versionArray['workspace_Tstamp'] = $versionRecord['tstamp'];
$versionArray['workspace_Formated_Tstamp'] = BackendUtility::datetime($versionRecord['tstamp']);
......