mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch '1167-Fallo_en_exportación_a_CSV_de_Custom_Graphs' into 'develop'
fixed error exportation csv in custom graphs See merge request !708
This commit is contained in:
commit
f5d161b108
@ -88,7 +88,10 @@
|
||||
else if (typeof labels[index] !== 'undefined')
|
||||
date = labels[index];
|
||||
|
||||
result.data.push([date, value,dataObject.label]);
|
||||
var clean_label = dataObject.label;
|
||||
clean_label = clean_label.replace( new RegExp("<.*?>", "g"), "");
|
||||
clean_label = clean_label.replace( new RegExp(";", "g"), "");
|
||||
result.data.push([date, value, clean_label]);
|
||||
});
|
||||
}
|
||||
/* [
|
||||
@ -139,7 +142,7 @@
|
||||
|
||||
try {
|
||||
var elements = [];
|
||||
var custom_graph = $('input:hidden[name=custom_graph]').value;
|
||||
var custom_graph = $('#hidden-custom_graph').val();
|
||||
|
||||
if (custom_graph) {
|
||||
dataObject = retrieveDataOject(dataObjects);
|
||||
|
Loading…
x
Reference in New Issue
Block a user