Skip to content

Commit 8923476

Browse files
sukhwinder33445nilmerg
authored andcommitted
BpNode::getMissingChildren(): Use child name if alias not given
Host/Service alias is optional and null as default
1 parent a30f85d commit 8923476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/Businessprocess/BpNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,11 @@ public function getMissingChildren()
277277

278278
foreach ($this->getChildren() as $child) {
279279
if ($child->isMissing()) {
280-
$missing[$child->getAlias()] = $child;
280+
$missing[$child->getAlias() ?? $child->getName()] = $child;
281281
}
282282

283283
foreach ($child->getMissingChildren() as $m) {
284-
$missing[$m->getAlias()] = $m;
284+
$missing[$m->getAlias() ?? $m->getName()] = $m;
285285
}
286286
}
287287

0 commit comments

Comments
 (0)