Skip to content

Commit

Permalink
bug : transform array string not worked properly
Browse files Browse the repository at this point in the history
  • Loading branch information
encreinformatique committed Feb 14, 2022
1 parent 26c2950 commit 0fb7032
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Exporter/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ private function arrayAsString(array $form_data): array
{
foreach ($form_data as $field => $value) {
if (\is_array($value) && \count($value) === 1) {
$form_data[$field] = $value;
$first = \array_shift($value);
$form_data[$field] = $first;
}
}

Expand Down

0 comments on commit 0fb7032

Please sign in to comment.