Undefined array key 0 when chosing a grouping field

Created on 24 July 2025, 2 days ago

Problem/Motivation

Undefined array key 0 in Drupal\leaflet_views\Plugin\views\style\LeafletMap->setOverlaysGroupingElement() (line 530 of /path_to_site/web/modules/contrib/leaflet/modules/leaflet_views/src/Plugin/views/style/LeafletMap.php). =>

Steps to reproduce

Go to Format:Leaflet Map > Settings
Then in Overlays - Leaflet Grouping section chose a grouping field

Proposed resolution

Line 530 is about the Disabled Layers form field

          '#options' => $overlays_options,
(L530)    '#default_value' => $this->options["grouping"][0]['overlays_options']['disabled_overlays'],

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

10.3

Component

Code

Created by

🇫🇷France erwangel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024