Merge pull request #884 from icecaster/master

Fix: scaffolded Enum dropdown field always returning empty string
This commit is contained in:
Ingo Schommer 2012-10-16 23:28:10 -07:00
commit ee3954d5d7

View File

@ -95,7 +95,9 @@ class Enum extends StringField {
if(!$name) $name = $this->name;
$field = new DropdownField($name, $title, $this->enumValues($hasEmpty), $value, $form);
if($hasEmpty) {
$field->setEmptyString($emptyString);
}
return $field;
}