form type correction

This commit is contained in:
Benjamin Dalsass
2025-12-04 06:52:37 +01:00
parent 4620710f5a
commit 842bbcee9d

View File

@@ -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));
}
}
}