mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
fixed error exportation csv in custom graphs
This commit is contained in:
parent
5860d29e37
commit
fb9f187287
@ -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