View Issue Details

IDProjectCategoryView StatusLast Update
0016598mantisbtreportspublic2018-02-05 03:07
Reporteribantxo28 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionreopened 
Product Version1.2.15 
Summary0016598: How to show "Category" in the tooltip of graphs?
Description

Is there any configuration to "activate" showing category in tooltips?

Many thanks

TagsNo tags attached.

Activities

ibantxo28

ibantxo28

2013-11-10 06:45

reporter   ~0038523

in core/relationship_graph_api.php

Internal function used to add a bug to the given graph.

function relgraph_add_bug_to_graph( &$p_graph, $p_bug_id, $p_bug, $p_url = null, $p_highlight = false ) {
$t_node_attributes = array();
$t_node_attributes['label'] = $p_bug_id;

    if( $p_highlight ) {
            $t_node_attributes['color'] = '#0000FF';
            $t_node_attributes['style'] = 'bold, filled';
    } else {
            $t_node_attributes['color'] = 'black';
            $t_node_attributes['style'] = 'filled';
    }

    $t_node_attributes['fillcolor'] = get_status_color( $p_bug->status );

    if( null !== $p_url ) {
            $t_node_attributes['URL'] = $p_url;
    }

++ $t_category = category_full_name( $p_bug->category_id, false );
$t_summary = string_display_line_links( $p_bug->summary );
$t_status = get_enum_element( 'status', $p_bug->status );
-- $t_node_attributes['tooltip'] = '' . $t_category . ' ' . $t_summary;
++ $t_node_attributes['tooltip'] = '[' . $t_status . '] ' . $t_summary;

    $p_graph->add_node( $p_bug_id, $t_node_attributes );

}

atrol

atrol

2016-07-17 17:27

developer   ~0053622

Reopened.
This issue is about relationship graphs and not fixed in 2.0.x.