mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
NodeAddChildrenAction: do nothing for missing node
This commit is contained in:
parent
141c043b04
commit
5f26440a00
1 changed files with 5 additions and 0 deletions
|
|
@ -31,6 +31,11 @@ class NodeAddChildrenAction extends NodeAction
|
|||
public function applyTo(BusinessProcess $bp)
|
||||
{
|
||||
/** @var BpNode $node */
|
||||
if (! $this->hasNode()) {
|
||||
// TODO: We end up here when defining "top nodes", but that would probably
|
||||
// be a different action
|
||||
return $this;
|
||||
}
|
||||
$node = $bp->getNode($this->getNodeName());
|
||||
$existing = $node->getChildNames();
|
||||
foreach ($this->children as $name) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue