mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8756 from open-sausages/pulls/4/string-cast-dropdownfield-entry-title
MINOR Always cast formfield display value as a string to avoid 0 being blank
This commit is contained in:
commit
fad221bf1c
@ -106,7 +106,7 @@ class DropdownField extends SingleSelectField
|
||||
}
|
||||
|
||||
return new ArrayData(array(
|
||||
'Title' => $title,
|
||||
'Title' => (string)$title,
|
||||
'Value' => $value,
|
||||
'Selected' => $selected,
|
||||
'Disabled' => $disabled,
|
||||
|
Loading…
Reference in New Issue
Block a user