Fixed labels in pie custom graphs. Ticket #3873.
This commit is contained in:
parent
9abcfbf1b3
commit
834612f125
|
@ -1585,11 +1585,11 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||
}
|
||||
$total_modules += $value;
|
||||
|
||||
if ( !empty($labels) && isset($labels[$module]) )
|
||||
$label = io_safe_input($labels[$module]);
|
||||
else {
|
||||
if ( !empty($labels) && isset($labels[$module]) ){
|
||||
$label = io_safe_output($labels[$module]);
|
||||
}else {
|
||||
$agent_name = agents_get_name($data_module['id_agente']);
|
||||
$label = $agent_name . ": " . $data_module['nombre'];
|
||||
$label = io_safe_output($agent_name . ": " . $data_module['nombre']);
|
||||
}
|
||||
|
||||
$temp[$label] = array('value'=>$value,
|
||||
|
|
Loading…
Reference in New Issue