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:
Guy Marriott 2019-01-28 12:09:20 +13:00 committed by GitHub
commit fad221bf1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ class DropdownField extends SingleSelectField
}
return new ArrayData(array(
'Title' => $title,
'Title' => (string)$title,
'Value' => $value,
'Selected' => $selected,
'Disabled' => $disabled,