mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-25 23:04:53 +02:00
Boolean: keep value when validating
Might fix weird issues related to booleans
This commit is contained in:
parent
bd157b865b
commit
fa3042c39f
@ -31,6 +31,7 @@ class Boolean extends ZfSelect
|
||||
public function isValid($value, $context = null)
|
||||
{
|
||||
if ($value === 'y' || $value === 'n') {
|
||||
$this->setValue($value);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user