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!

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

antonio.bertolini created an issue. See original summary.

abhishek_gupta1 made their first commit to this issue’s fork.

abhishek_gupta1’s picture

Status: Active » Needs review

@antonio.bertolini, I have fixed the issue and created MR. please review it once

gueguerreiro made their first commit to this issue’s fork.

gueguerreiro’s picture

Same fix needs to be applied for CompleteWebFormExporterController, for when we are exporting single submissions. Updated the MR.

antonio.bertolini’s picture

Hi all,
Works for me, thanks!!

Antonio

vishal.kadam’s picture

Version: 1.0.3 » 1.0.x-dev
Assigned: Unassigned » vishal.kadam

vishal.kadam’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.