mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-24 00:29:47 -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())) {
|
if (! $this instanceof ImportedNode && $this->getBpConfig()->hasRootNode($this->getName())) {
|
||||||
$paths[] = [$differentConfig ? $this->getIdentifier() : $this->getName()];
|
$paths[] = [$differentConfig ? $this->getIdentifier() : $this->getName()];
|
||||||
|
} elseif (! $this->hasParents()) {
|
||||||
|
$paths[] = ['__unbound__', $differentConfig ? $this->getIdentifier() : $this->getName()];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $paths;
|
return $paths;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue