IcingaCommandArgument: skip default for compact

This commit is contained in:
Thomas Gelf 2017-09-04 12:45:21 +02:00
parent 04a72fbc5a
commit 7cd307ea53
1 changed files with 4 additions and 3 deletions

View File

@ -105,16 +105,17 @@ class IcingaCommandArgument extends IcingaObject
}
}
public function toCompatPlainObject($skipDefaults = false)
public function toCompatPlainObject()
{
$plain = parent::toPlainObject(
false,
$skipDefaults,
true,
null,
false
);
unset($plain->id);
unset($plain->argument_name);
$this->transformPlainArgumentValue($plain);
@ -166,7 +167,7 @@ class IcingaCommandArgument extends IcingaObject
// $resolveIds is misused here
if ($resolveIds) {
return $this->toCompatPlainObject($skipDefaults);
return $this->toCompatPlainObject();
} else {
return $this->toFullPlainObject($skipDefaults);
}