Skip to content

Commit

Permalink
Merge pull request #95 from enthus1ast/fixFilename
Browse files Browse the repository at this point in the history
fix #92
  • Loading branch information
bobdenotter authored Jan 21, 2022
2 parents a76e754 + 442bece commit 4ccb731
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/EventSubscriber/ContentTypePersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ private function setContentFields(Content $content, Form $form, PostSubmitEvent
}

if (is_array($value)) {
$value = implode(', ', $value);
$value = implode(', ', array_map(function ($entry) {
return $entry[0];
}, $value));
}
$value = (string) $value;

Expand Down

0 comments on commit 4ccb731

Please sign in to comment.