mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update DBBoolean.php (#9893)
This commit is contained in:
parent
47855e3e49
commit
504e20320e
@ -62,13 +62,13 @@ class DBBoolean extends DBField
|
||||
{
|
||||
$anyText = _t(__CLASS__ . '.ANY', 'Any');
|
||||
$source = [
|
||||
'' => $anyText,
|
||||
1 => _t(__CLASS__ . '.YESANSWER', 'Yes'),
|
||||
0 => _t(__CLASS__ . '.NOANSWER', 'No')
|
||||
];
|
||||
|
||||
$field = new DropdownField($this->name, $title, $source);
|
||||
$field->setEmptyString("($anyText)");
|
||||
return $field;
|
||||
return (new DropdownField($this->name, $title, $source))
|
||||
->setEmptyString($anyText);
|
||||
}
|
||||
|
||||
public function nullValue()
|
||||
|
Loading…
x
Reference in New Issue
Block a user