diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 544730ae6c..7a8c2c075d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-02-16 Ramon Novoa + + * include/functions_menu.php, operation/menu.php: Added a title to GIS + maps and Visual console maps in the menu. Fixes bug #3182148. + 2011-02-16 Miguel de Dios * include/functions_visual_map.php: added links to services in the items in diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index a5e783e8c7..9d348b9dc9 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -119,7 +119,7 @@ function print_menu (&$menu) { if (isset ($sub["type"]) && $sub["type"] == "direct") { //This is an external link - $submenu_output .= '
  • '.$sub["text"]."
  • "; + $submenu_output .= '
  • '.$sub["text"]."
  • "; } else { //This is an internal link @@ -157,7 +157,12 @@ function print_menu (&$menu) { $extensionInMenu = ''; } - $submenu_output .= ''.$sub["text"].''; + if (isset ($sub["title"])) { + $title = ' title="' . $sub["title"] . ' "'; + } else { + $title = ''; + } + $submenu_output .= ''.$sub["text"].''; $submenu_output .= ''; } } diff --git a/pandora_console/operation/menu.php b/pandora_console/operation/menu.php index c1a63eba70..e4c262dce3 100644 --- a/pandora_console/operation/menu.php +++ b/pandora_console/operation/menu.php @@ -84,6 +84,7 @@ if (give_acl ($config['id_user'], 0, "AR")) { continue; } $sub["operation/gis_maps/render_view&map_id=".$gisMap["id_tgis_map"]]["text"] = mb_substr ($gisMap["map_name"], 0, 15); + $sub["operation/gis_maps/render_view&map_id=".$gisMap["id_tgis_map"]]["title"] = $gisMap["map_name"]; $sub["operation/gis_maps/render_view&map_id=".$gisMap["id_tgis_map"]]["refr"] = 0; } @@ -122,6 +123,7 @@ if (give_acl ($config['id_user'], 0, "AR")) { continue; } $sub["operation/visual_console/render_view&id=".$layout["id"]]["text"] = mb_substr ($name, 0, 15); + $sub["operation/visual_console/render_view&id=".$layout["id"]]["title"] = $name; $sub["operation/visual_console/render_view&id=".$layout["id"]]["refr"] = 0; }