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
This commit is contained in:
Ravi Kumar Kempapura Srinivasa 2020-05-19 16:42:09 +02:00
parent a212d6ea5e
commit b39d953fee

View file

@ -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()) {