From e31607a4e09100183db0a805df730e43bf0f2d6c Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 22 Mar 2019 15:06:01 +0100 Subject: [PATCH] custom link colors Former-commit-id: 9aa8f8114494d8b8fd8f010fa5066142fd104f70 --- pandora_console/include/class/NetworkMap.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/class/NetworkMap.class.php b/pandora_console/include/class/NetworkMap.class.php index 77d8965cbb..c891431a5f 100644 --- a/pandora_console/include/class/NetworkMap.class.php +++ b/pandora_console/include/class/NetworkMap.class.php @@ -1781,7 +1781,7 @@ class NetworkMap } } - if (isset($rel['link_color'])) { + if (isset($rel['link_color']) && !empty($rel['link_color'])) { // Direct color definition. $item['link_color'] = $rel['link_color']; } else { @@ -2463,6 +2463,7 @@ class NetworkMap 'id_child_source_data' => $rel['id_child_source_data'], 'id_parent_agent' => $rel['id_parent_agent'], 'id_child_agent' => $rel['id_child_agent'], + 'link_color' => $rel['link_color'], ]; $found = 0;