From 4e6e1f08198626868956c7fbdd5403ac6addb056 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 26 Feb 2020 09:00:24 +0100 Subject: [PATCH] Node: Add `__unbound__` parent node in `getPaths()` if there are no parents fixes #245 --- library/Businessprocess/Node.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Businessprocess/Node.php b/library/Businessprocess/Node.php index 067d433..c7dc07d 100644 --- a/library/Businessprocess/Node.php +++ b/library/Businessprocess/Node.php @@ -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;