Skip to content

Commit

Permalink
fix #92
Browse files Browse the repository at this point in the history
Signed-off-by: David Krause <[email protected]>
  • Loading branch information
enthus1ast committed Jan 21, 2022
1 parent a76e754 commit 442bece
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 442bece

Please sign in to comment.