mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
IcingaApiCommandRenderer: Don't set empty array, if no attr is set
- Use the returned value instead, either array or null. - With https://github.com/Icinga/icinga2/issues/8167 attrs=[] means that no attrs are fetched at all, and attrs=null means that all available attrs are fetched
This commit is contained in:
parent
815236eceb
commit
a7afaf71f2
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ class IcingaApiCommandRenderer implements IcingaCommandRendererInterface
|
|||
{
|
||||
$data = [
|
||||
'all_joins' => 1,
|
||||
'attrs' => $command->getAttributes() ?: []
|
||||
'attrs' => $command->getAttributes()
|
||||
];
|
||||
|
||||
$endpoint = 'objects/' . $this->getObjectPluralType($this->applyFilter($data, $command->getObjects()));
|
||||
|
|
|
|||
Loading…
Reference in a new issue