mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
IcingaCommandArgument: skip default for compact
This commit is contained in:
parent
04a72fbc5a
commit
7cd307ea53
@ -105,16 +105,17 @@ class IcingaCommandArgument extends IcingaObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toCompatPlainObject($skipDefaults = false)
|
public function toCompatPlainObject()
|
||||||
{
|
{
|
||||||
$plain = parent::toPlainObject(
|
$plain = parent::toPlainObject(
|
||||||
false,
|
false,
|
||||||
$skipDefaults,
|
true,
|
||||||
null,
|
null,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
unset($plain->id);
|
unset($plain->id);
|
||||||
|
unset($plain->argument_name);
|
||||||
|
|
||||||
$this->transformPlainArgumentValue($plain);
|
$this->transformPlainArgumentValue($plain);
|
||||||
|
|
||||||
@ -166,7 +167,7 @@ class IcingaCommandArgument extends IcingaObject
|
|||||||
|
|
||||||
// $resolveIds is misused here
|
// $resolveIds is misused here
|
||||||
if ($resolveIds) {
|
if ($resolveIds) {
|
||||||
return $this->toCompatPlainObject($skipDefaults);
|
return $this->toCompatPlainObject();
|
||||||
} else {
|
} else {
|
||||||
return $this->toFullPlainObject($skipDefaults);
|
return $this->toFullPlainObject($skipDefaults);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user