From ecb483af1a5a6f4af7a49ea4bf8832dcec5eb8b6 Mon Sep 17 00:00:00 2001 From: danielmaya Date: Wed, 18 Apr 2018 14:51:38 +0200 Subject: [PATCH] Fixed issue when target = -1 in networkmap --- pandora_console/include/functions_pandora_networkmap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_pandora_networkmap.php b/pandora_console/include/functions_pandora_networkmap.php index 4ff64aa0e9..92b24d38cf 100644 --- a/pandora_console/include/functions_pandora_networkmap.php +++ b/pandora_console/include/functions_pandora_networkmap.php @@ -836,7 +836,7 @@ function networkmap_links_to_js_links($relations, $nodes_graph) { $item['source'] = $node['id']; } } - if (($item['target'] == -1) && ($item['source'] == -1) && $relation['parent_type'] == 1 && $relation['child_type'] == 1) { + if ((($item['target'] == -1) || ($item['source'] == -1)) && $relation['parent_type'] == 1 && $relation['child_type'] == 1) { continue; }