IcingaObject: fix full plain for empty multi rel

This commit is contained in:
Thomas Gelf 2016-03-16 15:17:58 +01:00
parent e557ea8f63
commit d605bd7b06

View File

@ -1472,7 +1472,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
}
foreach ($this->loadAllMultiRelations() as $key => $rel) {
if (count($rel)) {
if (count($rel) || !$skipDefaults) {
$props[$key] = $rel->listRelatedNames();
}
}