From 9c84764157e23d7a8967357d7a9bd22daea9f420 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 3 Aug 2023 17:56:36 +0200 Subject: [PATCH] BpNode: Re-index childnames upon node removal --- library/Businessprocess/BpNode.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Businessprocess/BpNode.php b/library/Businessprocess/BpNode.php index 419f836..4b67622 100644 --- a/library/Businessprocess/BpNode.php +++ b/library/Businessprocess/BpNode.php @@ -173,6 +173,8 @@ class BpNode extends Node if (! empty($this->children)) { unset($this->children[$name]); } + + $this->childNames = array_values($this->childNames); } return $this;