Skip to content

Commit

Permalink
Update StrawberryAjaxInteractions.php. Checkboxes need to have [] as …
Browse files Browse the repository at this point in the history
…default

New in latest Drupal. In the past NULL was possible
  • Loading branch information
DiegoPino authored Aug 13, 2024
1 parent edfa658 commit 2e364e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#title' => $this->t(
'Which Contextual filters (if any) should allow input from other ADOs'
),
'#options' => $all_exposed_arguments,
'#default_value' => $this->options['sbf_ajax_interactions_arguments'] ?? NULL,
'#options' => $all_exposed_arguments ?? [],
'#default_value' => $this->options['sbf_ajax_interactions_arguments'] ?? [],
'#states' => [
'enabled' => [
':input[name="sbf_ajax_interactions"]' => ['checked' => TRUE],
Expand Down

0 comments on commit 2e364e9

Please sign in to comment.