2010-06-07 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2010-06-07 13:24:25 +00:00
parent df10be84c2
commit b4e844b8b3
2 changed files with 21 additions and 9 deletions

View File

@ -1,3 +1,10 @@
2010-06-07 Miguel de Dios <miguel.dedios@artica.es>
* 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 <rnovoa@artica.es> 2010-06-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php: Disabled DB cache for * include/functions_reporting.php: Disabled DB cache for

View File

@ -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_begin'] = 'layout-data-'.$layout_data["parent_item"];
$line['node_end'] = 'layout-data-'.$layout_data["id"]; $line['node_end'] = 'layout-data-'.$layout_data["id"];
switch ($status_parent) { switch ($status_parent) {
case 3: $line["color"] = "#ccc"; // Gray default:
break; case 3:
case 2: $line["color"] = "#20f6f6"; // Yellow $line["color"] = "#ccc"; // Gray
break; break;
case 0: $line["color"] = "#00ff00"; // Green case 2:
break; $line["color"] = "#20f6f6"; // Yellow
case 4: break;
case 1: $line["color"] = "#ff0000"; // Red case 0:
break; $line["color"] = "#00ff00"; // Green
break;
case 4:
case 1:
$line["color"] = "#ff0000"; // Red
break;
} }
array_push ($lines, $line); array_push ($lines, $line);
} }