Merge remote branch 'origin/master' into translation-staging

This commit is contained in:
TeamCity 2012-10-17 20:15:06 +13:00
commit fd82ba943d

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);
$field->setEmptyString($emptyString);
if($hasEmpty) {
$field->setEmptyString($emptyString);
}
return $field;
}