Skip to content

Commit

Permalink
Merge pull request #8756 from open-sausages/pulls/4/string-cast-dropd…
Browse files Browse the repository at this point in the history
…ownfield-entry-title

MINOR Always cast formfield display value as a string to avoid 0 being blank
  • Loading branch information
ScopeyNZ authored Jan 27, 2019
2 parents 7ee0dff + db466fb commit fad221b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/DropdownField.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected function getFieldOption($value, $title)
}

return new ArrayData(array(
'Title' => $title,
'Title' => (string)$title,
'Value' => $value,
'Selected' => $selected,
'Disabled' => $disabled,
Expand Down

0 comments on commit fad221b

Please sign in to comment.