Update DBBoolean.php (#9893)

This commit is contained in:
Nicolaas 2021-03-24 12:05:33 +13:00 committed by GitHub
parent 47855e3e49
commit 504e20320e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,13 +62,13 @@ class DBBoolean extends DBField
{ {
$anyText = _t(__CLASS__ . '.ANY', 'Any'); $anyText = _t(__CLASS__ . '.ANY', 'Any');
$source = [ $source = [
'' => $anyText,
1 => _t(__CLASS__ . '.YESANSWER', 'Yes'), 1 => _t(__CLASS__ . '.YESANSWER', 'Yes'),
0 => _t(__CLASS__ . '.NOANSWER', 'No') 0 => _t(__CLASS__ . '.NOANSWER', 'No')
]; ];
$field = new DropdownField($this->name, $title, $source); return (new DropdownField($this->name, $title, $source))
$field->setEmptyString("($anyText)"); ->setEmptyString($anyText);
return $field;
} }
public function nullValue() public function nullValue()