Merge branch '1251-export-data-to-csv-in-graph-container-dev' into 'develop'

Fixed error in js library and added good export to graph container graphs

See merge request !828
This commit is contained in:
vgilc 2017-10-04 14:28:38 +02:00
commit 45c35a1a0f
2 changed files with 2 additions and 4 deletions

View File

@ -54,6 +54,7 @@ if (enterprise_include_once('include/functions_reporting.php') !== ENTERPRISE_NO
$enterpriseEnable = true;
}
html_print_input_hidden ('custom_graph', 1);
if ($enterpriseEnable) {
$buttons = reporting_enterprise_add_template_graph_tabs($buttons);
}

View File

@ -34,10 +34,7 @@
}
if (dataObjects.length > 1) {
dataObjects.forEach(function (element) {
if (/^Avg.:/i.test(element.label))
result = element;
if (/^Percentil/i.test(element.label))
result = element;
result = element;
});
// If the avg set is missing, retrieve the first set