Merge branch '2816-Reports-de-custom-graphs-no-funcionan-si-le-ponemos-un-nombre-a-la-custom-graph' into 'develop'

fixed bug: reporting of custom graphs not showing graph when graph name is empty

See merge request artica/pandorafms!1809
This commit is contained in:
vgilc 2018-09-28 09:58:11 +02:00
commit 2fe350ed75
1 changed files with 5 additions and 0 deletions

View File

@ -6280,6 +6280,11 @@ function reporting_custom_graph($report, $content, $type = 'dinamic',
else {
$content['name'] = __('Simple graph');
}
} else {
if ($type_report == "custom_graph") {
$graphs = db_get_all_rows_field_filter ("tgraph", "id_graph", $content['id_gs']);
$id_graph = $content['id_gs'];
}
}
$return['title'] = $content['name'];