Merge branch '1469-graficas-tip-en-automatic-combined-graphs-y-custom-graphs-pdf-4261-vodat_rev' into 'develop'
fixed minor error combined graph fullscale See merge request artica/pandorafms!1257
This commit is contained in:
commit
7e70d22d0a
|
@ -1321,7 +1321,6 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||
$data = array ();
|
||||
}
|
||||
|
||||
|
||||
// Uncompressed module data
|
||||
if ($uncompressed_module) {
|
||||
$min_necessary = 1;
|
||||
|
@ -2387,8 +2386,9 @@ function fullscale_data_combined($module_list, $period, $date, $flash_charts, $p
|
|||
$array_percentil = array();
|
||||
}
|
||||
|
||||
$previous_data = modules_get_previous_data ($value_module, $datelimit);
|
||||
$data_uncompress = db_uncompress_module_data($value_module, $datelimit, $date);
|
||||
|
||||
|
||||
foreach ($data_uncompress as $key_data => $value_data) {
|
||||
foreach ($value_data['data'] as $k => $v) {
|
||||
if($flash_charts) {
|
||||
|
@ -2398,6 +2398,13 @@ function fullscale_data_combined($module_list, $period, $date, $flash_charts, $p
|
|||
$real_date = $v['utimestamp'];
|
||||
}
|
||||
|
||||
if(!isset($v['datos'])){
|
||||
$v['datos'] = $previous_data;
|
||||
}
|
||||
else{
|
||||
$previous_data = $v['datos'];
|
||||
}
|
||||
|
||||
if (!is_null($percentil) && $percentil) {
|
||||
$array_percentil[] = $v['datos'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue