mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
DirectorObjectForm: fix booleans
This commit is contained in:
parent
782667e6b9
commit
6e5fa49e1a
@ -183,6 +183,12 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
unset($props['vars']);
|
||||
}
|
||||
|
||||
foreach ($props as $k => & $v) {
|
||||
if (is_bool($v)) {
|
||||
$v = $v ? 'y' : 'n';
|
||||
}
|
||||
}
|
||||
|
||||
$this->setDefaults($props);
|
||||
|
||||
if (! $object instanceof IcingaObject) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user