mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-06 05:29:35 -05:00
BpNode::getMissingChildren(): Use child name if alias not given
Host/Service alias is optional and null as default
This commit is contained in:
parent
a30f85dbcc
commit
8923476277
1 changed files with 2 additions and 2 deletions
|
|
@ -277,11 +277,11 @@ class BpNode extends Node
|
|||
|
||||
foreach ($this->getChildren() as $child) {
|
||||
if ($child->isMissing()) {
|
||||
$missing[$child->getAlias()] = $child;
|
||||
$missing[$child->getAlias() ?? $child->getName()] = $child;
|
||||
}
|
||||
|
||||
foreach ($child->getMissingChildren() as $m) {
|
||||
$missing[$m->getAlias()] = $m;
|
||||
$missing[$m->getAlias() ?? $m->getName()] = $m;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue