mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
Boolean: form sends '' for null value
This commit is contained in:
parent
44e2c73f79
commit
0ce8a29b52
@ -33,6 +33,7 @@ class Boolean extends ZfSelect
|
||||
return $value === 'y'
|
||||
|| $value === 'n'
|
||||
|| $value === null
|
||||
|| $value === ''
|
||||
|| $value === true
|
||||
|| $value === false;
|
||||
}
|
||||
@ -43,6 +44,8 @@ class Boolean extends ZfSelect
|
||||
$value = 'y';
|
||||
} elseif ($value === false) {
|
||||
$value = 'n';
|
||||
} elseif ($value === '') {
|
||||
$value = null;
|
||||
}
|
||||
|
||||
return parent::setValue($value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user