mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaCommandArgument: fix booleans
This commit is contained in:
parent
f2dc9c59e5
commit
9e91285136
@ -81,11 +81,11 @@ class IcingaCommandArgument extends IcingaObject
|
||||
$data['set_if'] = $this->set_if;
|
||||
}
|
||||
|
||||
if ($this->required) {
|
||||
if ($this->required !== null) {
|
||||
$data['required'] = $this->required === 'y';
|
||||
}
|
||||
|
||||
if ($this->repeat_key) {
|
||||
if ($this->repeat_key !== null) {
|
||||
$data['repeat_key'] = $this->repeat_key === 'y';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user