From 98358cc64a744adf3ae68199d857e2fd53fb692f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 6 Feb 2015 23:32:17 +0100 Subject: [PATCH] Node: set missing state class if node is missing Does not yet work for process nodes, we might be forced to introduce a full-blown "missing flag" for our numeric state --- library/Businessprocess/Node.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Businessprocess/Node.php b/library/Businessprocess/Node.php index 05fb1d9..9a4fb51 100644 --- a/library/Businessprocess/Node.php +++ b/library/Businessprocess/Node.php @@ -256,6 +256,7 @@ abstract class Node { $id = $this->getId($prefix); $state = strtolower($this->getStateName()); + if ($this->isMissing()) $state = 'missing'; $handled = $this->isAcknowledged() || $this->isInDowntime(); $html = sprintf( '',