Commit 3f417d4e authored by Helmut Hummel's avatar Helmut Hummel Committed by Benni Mack
Browse files

[BUGFIX] Properly render hidden fields for IRRE records

Despite $resultArray['additionalHiddenFields'] being properly
set by the elements, this section is never evaluated
in InlineRecordContainer.

Evaluate content in this property and render the fields
in the HTML output.

Resolves: #87614
Releases: master, 9.5, 8.7
Change-Id: Idb45a906d3cb019e915c94df59fa215405cb1af3
Reviewed-on: https://review.typo3.org/c/59605

Reviewed-by: Andreas Wolf's avatarAndreas Wolf <andreas.wolf@typo3.org>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Susanne Moog's avatarSusanne Moog <susanne.moog@typo3.org>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog's avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent fcf92aca
......@@ -173,6 +173,8 @@ class InlineRecordContainer extends AbstractContainer
// If this record should be shown collapsed
$class = $data['isInlineChildExpanded'] ? 'panel-visible' : 'panel-collapsed';
}
$hiddenFieldHtml = implode(LF, $resultArray['additionalHiddenFields'] ?? []);
if ($inlineConfig['renderFieldsOnly']) {
// Render "body" part only
$html = $html . $combinationHtml;
......@@ -195,7 +197,7 @@ class InlineRecordContainer extends AbstractContainer
' . $this->renderForeignRecordHeader($data) . '
</div>
</div>
<div class="panel-collapse" id="' . htmlspecialchars($objectId) . '_fields">' . $html . $combinationHtml . '</div>
<div class="panel-collapse" id="' . htmlspecialchars($objectId) . '_fields">' . $html . $hiddenFieldHtml . $combinationHtml . '</div>
</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