Skip to content
Snippets Groups Projects
Commit 4d1095fc authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Provide pid to `BackendUtility::getProcessedValue()`

To allow `BackendUtility::getProcessedValue()` to properly
resolve the labels for select options, added via TSconfig,
the `pid` is now provided by `StandardContentPreviewRenderer`.

Resolves: #103076
Releases: main, 12.4
Change-Id: I20777ae532b66800ea61143e1824c895c7673042
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83008


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarJochen Roth <rothjochen@gmail.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarJochen Roth <rothjochen@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 1f68f1ac
Branches
Tags
No related merge requests found
......@@ -242,7 +242,7 @@ class StandardContentPreviewRenderer implements PreviewRendererInterface, Logger
$fieldArr = explode(',', $fieldList);
foreach ($fieldArr as $field) {
if ($record[$field]) {
$fieldValue = BackendUtility::getProcessedValue('tt_content', $field, $record[$field], 0, false, false, $record['uid'] ?? 0) ?? '';
$fieldValue = BackendUtility::getProcessedValue('tt_content', $field, $record[$field], 0, false, false, $record['uid'] ?? 0, true, $record['pid'] ?? 0) ?? '';
$info[] = '<strong>' . htmlspecialchars((string)($itemLabels[$field] ?? '')) . '</strong> ' . htmlspecialchars($fieldValue);
}
}
......
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