Skip to content

Commit

Permalink
[BUGFIX] Provide pid to BackendUtility::getProcessedValue()
Browse files Browse the repository at this point in the history
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: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Jochen Roth <rothjochen@gmail.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Jochen Roth <rothjochen@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
o-ba committed Feb 16, 2024
1 parent 1f68f1a commit 4d1095f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -242,7 +242,7 @@ protected function getProcessedValue(GridColumnItem $item, string $fieldList, ar
$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);
}
}
Expand Down

0 comments on commit 4d1095f

Please sign in to comment.