Cannot access offset of type string on string

Created on 9 April 2025, 15 days ago

Hi all,
I've this error when i export submission with checkbox:
TypeError: Cannot access offset of type string on string in Drupal\complete_webform_exporter\Plugin\Action\WebformSubmissionsExporterAction->executeMultiple() (line 213 of /modules/contrib/complete_webform_exporter/src/Plugin/Action/WebformSubmissionsExporterAction.php).
At the moment I solve commenting out:

            if (in_array($element['#type'], ['radios', 'select'])) {
              $options = $element['#options'];
              //=>  $value = !empty($value) ? $options[$value] : $value;
            }

Drupal 10.4.5
PHP 8.3.19

Thanks!

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly antonio.bertolini

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024