mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-28 06:29:18 -05:00
Don't show state-badges for empty nodes
Before, the empty nodes were to be considered as missing nodes. Correspondingly, the counter for missing in BpNode::getStateSummary() was increased if an empty node is encountered. Now, the empty nodes are not assumed as missing nodes and the counter for missing is not increased for this case.
This commit is contained in:
parent
0892d1e90b
commit
32abce2529
1 changed files with 1 additions and 3 deletions
|
|
@ -11,6 +11,7 @@ class BpNode extends Node
|
|||
const OP_AND = '&';
|
||||
const OP_OR = '|';
|
||||
const OP_NOT = '!';
|
||||
|
||||
protected $operator = '&';
|
||||
protected $url;
|
||||
protected $info_command;
|
||||
|
|
@ -73,9 +74,6 @@ class BpNode extends Node
|
|||
$this->counters[$state]++;
|
||||
}
|
||||
}
|
||||
if (! $this->hasChildren()) {
|
||||
$this->counters['MISSING']++;
|
||||
}
|
||||
}
|
||||
return $this->counters;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue