mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
form type correction
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user