From 4baea754bb714a962e8359bafc7ebdbe9ca6c0ae Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Wed, 28 Sep 2016 10:45:46 +0200 Subject: [PATCH] New networkmaps in progress... (Added filter to links) --- pandora_console/include/functions_pandora_networkmap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/functions_pandora_networkmap.php b/pandora_console/include/functions_pandora_networkmap.php index a5bfe1b732..d890595fff 100644 --- a/pandora_console/include/functions_pandora_networkmap.php +++ b/pandora_console/include/functions_pandora_networkmap.php @@ -676,6 +676,8 @@ function networkmap_write_js_array($id, $nodes_and_relations = array()) { continue; if ($link_js['source'] == -1) continue; + if ($link_js['target'] == $link_js['source']) + continue; echo "networkmap.links.push(" . json_encode($link_js) . ");\n"; }