Skip to content

Commit

Permalink
fix(admin/form-submission): remove file fields (which are saved as em…
Browse files Browse the repository at this point in the history
…pty array) (#1072)
  • Loading branch information
theus77 authored Nov 10, 2024
1 parent 0b6d58c commit 3dc0344
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ public function generateExportConfig(array $formSubmissionIds): array
$formSubmission = $this->getById($formSubmissionId);
/** @var array<mixed> $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();
Expand Down

0 comments on commit 3dc0344

Please sign in to comment.