From d325844b90cffb84706b5178e43b1e6ae126dd49 Mon Sep 17 00:00:00 2001 From: Florian Strohmaier Date: Mon, 17 Jan 2022 10:51:27 +0100 Subject: [PATCH] BPNode: Ignore node children states in state badges --- library/Businessprocess/BpNode.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/Businessprocess/BpNode.php b/library/Businessprocess/BpNode.php index 2afde69..2ea8f8e 100644 --- a/library/Businessprocess/BpNode.php +++ b/library/Businessprocess/BpNode.php @@ -65,12 +65,7 @@ class BpNode extends Node $this->counters = self::$emptyStateSummary; foreach ($this->getChildren() as $child) { - if ($child instanceof BpNode) { - $counters = $child->getStateSummary(); - foreach ($counters as $k => $v) { - $this->counters[$k] += $v; - } - } elseif ($child->isMissing()) { + if ($child->isMissing()) { $this->counters['MISSING']++; } else { $state = $child->getStateName($this->getChildState($child));