mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-27 01:39:35 -05:00
Check recursively for Empty BpNodes
In BpNode::recalculateState() the BpNode needs to be recursively checked if its children is empty using BpNode::isEmpty() instead of BpNode::hasChildren().
This commit is contained in:
parent
e19612bd4a
commit
6cc5eb8e74
1 changed files with 1 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ class BpNode extends Node
|
|||
$sort_states = array();
|
||||
$lastStateChange = 0;
|
||||
|
||||
if (!$this->hasChildren()) {
|
||||
if ($this->isEmpty()) {
|
||||
// TODO: delegate this to operators, should mostly fail
|
||||
$this->setState(self::NODE_EMPTY);
|
||||
return $this;
|
||||
|
|
|
|||
Loading…
Reference in a new issue