Skip to content

Commit 4fa6729

Browse files
authored
[BUGFIX] Missing rendered children in preview workspace
As described in Issue #2158 children are not rendered when previewing changes made in the preview workspace.
1 parent e76740a commit 4fa6729

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: Classes/ViewHelpers/Content/GetViewHelper.php

+4
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public static function renderStatic(
128128
if ($placeholder) {
129129
// Use the move placeholder if one exists, ensuring that "pid" and "tx_flux_parent" values are taken
130130
// from the workspace-only placeholder.
131+
$liveRecord = $record;
131132
/** @var array $record */
132133
$record = $placeholder;
133134
}
@@ -137,6 +138,9 @@ public static function renderStatic(
137138
$provider = $renderingContext->getViewHelperVariableContainer()->get(FormViewHelper::class, 'provider');
138139
$grid = $provider->getGrid($record);
139140
$rows = static::getContentRecords($arguments, $record, $grid);
141+
if (isset($liveRecord)) {
142+
array_push($rows, ...static::getContentRecords($arguments, $liveRecord, $grid));
143+
}
140144

141145
$elements = false === (boolean) $arguments['render'] ? $rows : static::getRenderedRecords($rows);
142146
if (empty($arguments['as'])) {

0 commit comments

Comments
 (0)