From 732fdafc147897357d5657660e2693288b4b9612 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 22 Mar 2019 15:08:44 +0100 Subject: [PATCH] custom text in links Former-commit-id: 31b851b5c296e8beb135a60f6b67ee8a073a28ea --- pandora_console/include/class/NetworkMap.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pandora_console/include/class/NetworkMap.class.php b/pandora_console/include/class/NetworkMap.class.php index c891431a5f..24c58eecd9 100644 --- a/pandora_console/include/class/NetworkMap.class.php +++ b/pandora_console/include/class/NetworkMap.class.php @@ -1781,6 +1781,16 @@ class NetworkMap } } + if (isset($rel['text_start']) && !empty($rel['text_start'])) { + // Direct text_start definition. + $item['text_start'] = $rel['text_start']; + } + + if (isset($rel['text_end']) && !empty($rel['text_end'])) { + // Direct text_end definition. + $item['text_end'] = $rel['text_end']; + } + if (isset($rel['link_color']) && !empty($rel['link_color'])) { // Direct color definition. $item['link_color'] = $rel['link_color']; @@ -2464,6 +2474,8 @@ class NetworkMap 'id_parent_agent' => $rel['id_parent_agent'], 'id_child_agent' => $rel['id_child_agent'], 'link_color' => $rel['link_color'], + 'text_start' => $rel['text_start'], + 'text_end' => $rel['text_end'], ]; $found = 0;