Commit f3c16924 authored by Susanne Moog's avatar Susanne Moog Committed by Benni Mack
Browse files

[BUGFIX] Add fallback identifier to IRRE fields

In case of IRRE in site context not the full form engine variables
are available - therefor a fallback has been implemented.

Resolves: #89628
Releases: master, 9.5
Change-Id: I0c499d41354e4dc369f5a53f2109d8559b5e3bcb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62265

Tested-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 85573949
......@@ -191,7 +191,8 @@ class InlineRecordContainer extends AbstractContainer
$originalUniqueValue = '';
if (isset($data['inlineData']['unique'][$domObjectId . '-' . $foreignTable]['used'][$record['uid']])) {
$uniqueValueValues = $data['inlineData']['unique'][$domObjectId . '-' . $foreignTable]['used'][$record['uid']];
$originalUniqueValue = $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
$originalUniqueValue = ($uniqueValueValues['table'] ?? $foreignTable) . '_' . ($uniqueValueValues['uid'] ?? $uniqueValueValues);
}
$containerAttributes = [
'id' => $objectId . '_div',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment