From 6d2b630152315b3a5ea408115b9f770cd49ec761 Mon Sep 17 00:00:00 2001 From: Mathieu De Keyzer Date: Sat, 2 Nov 2024 16:05:19 +0100 Subject: [PATCH] fix: don't remove empty fields to keep the form fields order --- .../src/Service/Form/Submission/FormSubmissionService.php | 1 - 1 file changed, 1 deletion(-) diff --git a/EMS/core-bundle/src/Service/Form/Submission/FormSubmissionService.php b/EMS/core-bundle/src/Service/Form/Submission/FormSubmissionService.php index e49efedeb..70e02f266 100644 --- a/EMS/core-bundle/src/Service/Form/Submission/FormSubmissionService.php +++ b/EMS/core-bundle/src/Service/Form/Submission/FormSubmissionService.php @@ -129,7 +129,6 @@ public function generateExportConfig(array $formSubmissionIds): array $formSubmission = $this->getById($formSubmissionId); /** @var array $data */ $data = $formSubmission->getData(); - $data = \array_filter($data, fn ($value) => \is_string($value)); $data['id'] = $formSubmission->getId(); $data['form'] = $formSubmission->getName(); $data['instance'] = $formSubmission->getInstance();