Skip to content
Snippets Groups Projects
Commit 3e9d0d8c authored by Garvin Hicking's avatar Garvin Hicking Committed by Christian Kuhn
Browse files

[BUGFIX] Render fieldControl in UuidElement

The 'uuid' FormEngine TCA element misses the call
to render registered field controls. Add it and
merge it into rendered HTML.

Resolves: #101740
Related: #101703
Related: #100171
Releases: main, 12.4
Change-Id: I18983883d2ae4460929a40aa3ccee1a7c261ab63
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80656


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 4c5fbea8
Branches
Tags
No related merge requests found
......@@ -104,6 +104,10 @@ class UuidElement extends AbstractFormElement
$resultArray['javaScriptModules'][] = JavaScriptModuleInstruction::create('@typo3/backend/copy-to-clipboard.js');
}
$fieldControlResult = $this->renderFieldControl();
$fieldControlHtml = $fieldControlResult['html'];
$resultArray = $this->mergeChildReturnIntoExistingResult($resultArray, $fieldControlResult, false);
$html = [];
$html[] = $this->renderLabel($fieldId);
$html[] = '<div class="formengine-field-item t3js-formengine-field-item">';
......@@ -113,6 +117,15 @@ class UuidElement extends AbstractFormElement
$html[] = '<div class="form-wizards-element">';
$html[] = $uuidElement;
$html[] = '</div>';
if (!empty($fieldControlHtml)) {
$html[] = '<div class="form-wizards-items-aside form-wizards-items-aside--field-control">';
$html[] = '<div class="btn-group">';
$html[] = $fieldControlHtml;
$html[] = '</div>';
$html[] = '</div>';
}
$html[] = '</div>';
$html[] = '</div>';
$html[] = '</div>';
......
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