From 7cd307ea53c0cfc8eccb360ab1bb2b367dcace4f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 4 Sep 2017 12:45:21 +0200 Subject: [PATCH] IcingaCommandArgument: skip default for compact --- library/Director/Objects/IcingaCommandArgument.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/Director/Objects/IcingaCommandArgument.php b/library/Director/Objects/IcingaCommandArgument.php index 507e01da..0db39228 100644 --- a/library/Director/Objects/IcingaCommandArgument.php +++ b/library/Director/Objects/IcingaCommandArgument.php @@ -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); }