diff --git a/EMS/core-bundle/src/Service/Form/Submission/FormSubmissionService.php b/EMS/core-bundle/src/Service/Form/Submission/FormSubmissionService.php index 44591f0a3..f450616b9 100644 --- a/EMS/core-bundle/src/Service/Form/Submission/FormSubmissionService.php +++ b/EMS/core-bundle/src/Service/Form/Submission/FormSubmissionService.php @@ -129,6 +129,8 @@ public function generateExportConfig(array $formSubmissionIds): array $formSubmission = $this->getById($formSubmissionId); /** @var array $data */ $data = $formSubmission->getData(); + $data = \array_filter($data, fn ($value) => !\is_array($value)); + $data = \array_map(fn ($value) => \strval($value), $data); $data['id'] = $formSubmission->getId(); $data['form'] = $formSubmission->getName(); $data['instance'] = $formSubmission->getInstance();