Verified Commit c19d29d2 authored by godotislate's avatar godotislate
Browse files

fix: #3441061 ListItemBase::storageSettingsForm() 'allowed_values' form element is missing a #type

By: smustgrave
By: godotislate
parent 294a1288
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -107,12 +107,12 @@ public function storageSettingsForm(array &$form, FormStateInterface $form_state

    $wrapper_id = Html::getUniqueId('allowed-values-wrapper');
    $element['allowed_values'] = [
      '#type' => 'container',
      '#element_validate' => [[static::class, 'validateAllowedValues']],
      '#field_has_data' => $has_data,
      '#allowed_values' => $allowed_values,
      '#required' => TRUE,
      '#prefix' => '<div id="' . $wrapper_id . '">',
      '#suffix' => '</div>',
      '#id' => $wrapper_id,
      '#access' => empty($allowed_values_function),
      'help_text' => ['#markup' => $this->allowedValuesDescription()],
    ];