mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
Node: Add __unbound__ parent node in getPaths() if there are no parents
fixes #245
This commit is contained in:
parent
3772950f6e
commit
4e6e1f0819
1 changed files with 2 additions and 0 deletions
|
|
@ -421,6 +421,8 @@ abstract class Node
|
|||
|
||||
if (! $this instanceof ImportedNode && $this->getBpConfig()->hasRootNode($this->getName())) {
|
||||
$paths[] = [$differentConfig ? $this->getIdentifier() : $this->getName()];
|
||||
} elseif (! $this->hasParents()) {
|
||||
$paths[] = ['__unbound__', $differentConfig ? $this->getIdentifier() : $this->getName()];
|
||||
}
|
||||
|
||||
return $paths;
|
||||
|
|
|
|||
Loading…
Reference in a new issue