From 7f83e243af40be4246b97d00a90662b21806a621 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 7 Jun 2010 13:24:25 +0000 Subject: [PATCH] 2010-06-07 Miguel de Dios * include/functions_visual_map.php: fixed the uncolour path between parent and child when update 3.0 to 3.1. Fixes: #3008489 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2868 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 ++++++ .../include/functions_visual_map.php | 23 +++++++++++-------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c9e5432523..6c0904b5d8 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2010-06-07 Miguel de Dios + + * include/functions_visual_map.php: fixed the uncolour path between parent + and child when update 3.0 to 3.1. + + Fixes: #3008489 + 2010-06-07 Ramon Novoa * include/functions_reporting.php: Disabled DB cache for diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index a7e98e377f..025cdbf98b 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -628,15 +628,20 @@ function print_pandora_visual_map ($id_layout, $show_links = true, $draw_lines = $line['node_begin'] = 'layout-data-'.$layout_data["parent_item"]; $line['node_end'] = 'layout-data-'.$layout_data["id"]; switch ($status_parent) { - case 3: $line["color"] = "#ccc"; // Gray - break; - case 2: $line["color"] = "#20f6f6"; // Yellow - break; - case 0: $line["color"] = "#00ff00"; // Green - break; - case 4: - case 1: $line["color"] = "#ff0000"; // Red - break; + default: + case 3: + $line["color"] = "#ccc"; // Gray + break; + case 2: + $line["color"] = "#20f6f6"; // Yellow + break; + case 0: + $line["color"] = "#00ff00"; // Green + break; + case 4: + case 1: + $line["color"] = "#ff0000"; // Red + break; } array_push ($lines, $line); }