Skip to content
Snippets Groups Projects
Commit 073d4283 authored by Jacob Rockowitz's avatar Jacob Rockowitz Committed by Jacob Rockowitz
Browse files

Issue #3303715: composite element with markup element without #admin_title...

Issue #3303715: composite element with markup element without #admin_title causes Undefined Array key on settings/submissions
parent 7dd7949a
Branches
Tags
1 merge request!217Issue #3303715: composite element with markup element without #admin_title causes Undefined Array key on settings/submissions
......@@ -193,6 +193,8 @@ class WebformCustomComposite extends WebformCompositeBase {
$element['#webform_composite_elements'] = [];
foreach ($element['#element'] as $composite_key => $composite_element) {
$this->elementManager->initializeElement($composite_element);
// Make sure the composite element has a #admin_title, especially markup.
$composite_element['#admin_title'] = $composite_element['#admin_title'] ?? $composite_key;
$element['#webform_composite_elements'][$composite_key] = $composite_element;
}
$this->initializeCompositeElementsRecursive($element, $element['#webform_composite_elements']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment