Merge branch 'ent-3940-No-salen-IPs-en-mapas-netflow' into 'develop'

Fixed node name in netflow map

See merge request artica/pandorafms!2386

Former-commit-id: 14cf4f85a78b092fb7efe10a05e63702d4dbcbb2
This commit is contained in:
Daniel Rodriguez 2019-04-30 17:53:48 +02:00
commit 3b73ea95ae
1 changed files with 6 additions and 1 deletions

View File

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