Commit 0ce25043 authored by Chris Müller's avatar Chris Müller Committed by Benni Mack
Browse files

[BUGFIX] Avoid array offset on null warning when generating preview URL params

Resolves: #96443
Releases: main, 11.5
Change-Id: I9f1c951628cf8872473ff20bbd59ffb769ffe279
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72839


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 52d4e537
......@@ -857,7 +857,7 @@ class EditDocumentController
// map record data to GET parameters
if (isset($previewConfiguration['fieldToParameterMap.'])) {
foreach ($previewConfiguration['fieldToParameterMap.'] as $field => $parameterName) {
$value = $recordArray[$field];
$value = $recordArray[$field] ?? '';
if ($field === 'uid') {
$value = $recordId;
}
......
Supports Markdown
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