mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge remote branch 'origin/master' into translation-staging
This commit is contained in:
commit
fd82ba943d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user