mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-27 15:09:30 +02:00
MINOR Always cast formfield display value as a string to avoid 0 being blank
This commit is contained in:
parent
d8cd085190
commit
db466fb013
|
@ -106,7 +106,7 @@ class DropdownField extends SingleSelectField
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ArrayData(array(
|
return new ArrayData(array(
|
||||||
'Title' => $title,
|
'Title' => (string)$title,
|
||||||
'Value' => $value,
|
'Value' => $value,
|
||||||
'Selected' => $selected,
|
'Selected' => $selected,
|
||||||
'Disabled' => $disabled,
|
'Disabled' => $disabled,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user