Fixed netflow node name

Former-commit-id: 0e134e7e70546aca26178336e4ff5ba2489d55ea
This commit is contained in:
Daniel Maya 2019-04-30 17:30:57 +02:00
parent 4b73518804
commit c31948b7c2
1 changed files with 6 additions and 1 deletions

View File

@ -1684,7 +1684,12 @@ class NetworkMap
$node[$k] = $v; $node[$k] = $v;
} }
$node['style']['label'] = $node['text']; if (!empty($node['text'])) {
$node['style']['label'] = $node['text'];
} else {
$node['style']['label'] = $node['name'];
}
$node['style']['shape'] = 'circle'; $node['style']['shape'] = 'circle';
if (isset($source_data['color'])) { if (isset($source_data['color'])) {
$item['color'] = $source_data['color']; $item['color'] = $source_data['color'];