custom link colors

Former-commit-id: 9aa8f8114494d8b8fd8f010fa5066142fd104f70
This commit is contained in:
fbsanchez 2019-03-22 15:06:01 +01:00
parent 9ef66a11c4
commit e31607a4e0
1 changed files with 2 additions and 1 deletions

View File

@ -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;