diff --git a/sources/Forms/FormType/Base/ChoiceFormType.php b/sources/Forms/FormType/Base/ChoiceFormType.php index c93f000a9..f1559cfcb 100644 --- a/sources/Forms/FormType/Base/ChoiceFormType.php +++ b/sources/Forms/FormType/Base/ChoiceFormType.php @@ -94,7 +94,7 @@ class ChoiceFormType extends AbstractType if ($oEvent->getData() === null) { $oFirstElement = array_shift($options['choices']); if ($oFirstElement !== null) { - $oEvent->setData($oFirstElement); + $oEvent->setData(strval($oFirstElement)); } } }