BPNode: Ignore node children states in state badges

This commit is contained in:
Florian Strohmaier 2022-01-17 10:51:27 +01:00
parent 2d299f73b9
commit d325844b90

View file

@ -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));