From 7de814a4af44545a3aaf2d2d23280607cc650637 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Kempapura Srinivasa Date: Thu, 27 Feb 2020 11:36:30 +0100 Subject: [PATCH] Set state to NODE_EMPTY in case of empty nodes In case of empty nodes, the state is set to NODE_EMPTY now. --- library/Businessprocess/BpNode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Businessprocess/BpNode.php b/library/Businessprocess/BpNode.php index 0556527..1170d51 100644 --- a/library/Businessprocess/BpNode.php +++ b/library/Businessprocess/BpNode.php @@ -353,7 +353,7 @@ class BpNode extends Node if (!$this->hasChildren()) { // TODO: delegate this to operators, should mostly fail - $this->setState(self::ICINGA_UNKNOWN); + $this->setState(self::NODE_EMPTY); $this->setMissing(); return $this; }