Merge branch 'ent-7356-SQL-graphs-en-templates-no-muestra-grafico' into 'develop'

Fixed errors report sql

See merge request artica/pandorafms!4055
This commit is contained in:
vgilc 2021-04-22 12:20:02 +00:00
commit ce72a5c6ee
1 changed files with 3 additions and 10 deletions

View File

@ -3682,16 +3682,9 @@ function graph_custom_sql_graph(
} }
} }
if ($id != null) { $historical_db = $content['historical_db'];
$historical_db = db_get_value_sql( if ($content['external_source'] != '') {
'SELECT historical_db from treport_content where id_rc ='.$content['id_rc'] $sql = io_safe_output($content['external_source']);
);
} else {
$historical_db = $content['historical_db'];
}
if ($report_content['external_source'] != '') {
$sql = io_safe_output($report_content['external_source']);
} else { } else {
$sql = db_get_row( $sql = db_get_row(
'treport_custom_sql', 'treport_custom_sql',