Skip to content
Snippets Groups Projects
Commit 22fa2af7 authored by Amjad Khan's avatar Amjad Khan Committed by Jacob Rockowitz
Browse files

Issue #3324914 by amjad1233: Warning: Undefined array key "#options" leads to...

Issue #3324914 by amjad1233: Warning: Undefined array key "#options" leads to TypeError: Drupal\Core\Form\OptGroup::flattenOptions():
parent d603843e
No related branches found
No related tags found
3 merge requests!358Issue #3386119 by Krypton: Added is null route check,!277Issue #3326313 by jrockowitz, _pratik_: Move Schema tab from...,!138Issue #3257570: Ensure that submission are deleted when a webform is deleted
......@@ -785,7 +785,7 @@ abstract class OptionsBase extends WebformElementBase {
$plugin_id = $this->getPluginId();
$name = $element['#webform_key'];
$options = OptGroup::flattenOptions($element['#options']);
$options = isset($element['#options']) ? OptGroup::flattenOptions($element['#options']) : [];
if ($this->getElementSelectorInputsOptions($element)) {
$other_type = $this->getOptionsOtherType();
$multiple = ($this->hasMultipleValues($element) && $other_type === 'select') ? '[]' : '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment