Skip to content
Snippets Groups Projects

Issue #3303715: composite element with markup element without #admin_title causes Undefined Array key on settings/submissions

Merged Issue #3303715: composite element with markup element without #admin_title causes Undefined Array key on settings/submissions
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -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']);
Loading