IcingaCommandArgument: no need for format...

...when there is no value
This commit is contained in:
Thomas Gelf 2018-10-15 13:01:39 +02:00
parent c119c47864
commit 15a8886db7
1 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,12 @@ class IcingaCommandArgument extends IcingaObject
unset($plain->id);
unset($plain->argument_name);
if (! isset($plain->argument_value)) {
unset($plain->argument_format);
}
if (! isset($plain->set_if)) {
unset($plain->set_if_format);
}
$this->transformPlainArgumentValue($plain);