From 2e364e9761e959991cf5995d766a9e72784a1dea Mon Sep 17 00:00:00 2001 From: Diego Pino Navarro Date: Tue, 13 Aug 2024 14:44:48 -0400 Subject: [PATCH] Update StrawberryAjaxInteractions.php. Checkboxes need to have [] as default New in latest Drupal. In the past NULL was possible --- .../views/display_extender/StrawberryAjaxInteractions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/format_strawberryfield_views/src/Plugin/views/display_extender/StrawberryAjaxInteractions.php b/modules/format_strawberryfield_views/src/Plugin/views/display_extender/StrawberryAjaxInteractions.php index 11c15726..d2e12f77 100644 --- a/modules/format_strawberryfield_views/src/Plugin/views/display_extender/StrawberryAjaxInteractions.php +++ b/modules/format_strawberryfield_views/src/Plugin/views/display_extender/StrawberryAjaxInteractions.php @@ -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],