From b39d953feeb1913ac50d20c8d878c58d646f0165 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Kempapura Srinivasa Date: Tue, 19 May 2020 16:42:09 +0200 Subject: [PATCH] Fix tile rendering for Bp nodes with unconfirmed deleted monitored nodes Earlier in NodeRemoveAction the states were recalculated for the BpNodes. Hence, the state for parent nodes with unconfirmed deleted monitored nodes (host/service) is set to Unknown. This results in incorrect tile rendering for the parent nodes. Therefore, any call to methods which recalculate the states are removed. fix #279 --- library/Businessprocess/Modification/NodeRemoveAction.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/Businessprocess/Modification/NodeRemoveAction.php b/library/Businessprocess/Modification/NodeRemoveAction.php index 64d8901..3769764 100644 --- a/library/Businessprocess/Modification/NodeRemoveAction.php +++ b/library/Businessprocess/Modification/NodeRemoveAction.php @@ -62,7 +62,6 @@ class NodeRemoveAction extends NodeAction */ public function applyTo(BpConfig $config) { - $config->calculateAllStates(); $name = $this->getNodeName(); $parentName = $this->getParentName(); if ($parentName === null) { @@ -81,7 +80,6 @@ class NodeRemoveAction extends NodeAction } else { $node = $config->getNode($name); $parent = $config->getBpNode($parentName); - $parent->getState(); $parent->removeChild($name); $node->removeParent($parentName); if (! $node->hasParents()) {