diff --git a/pandora_console/include/graphs/flot/jquery.flot.exportdata.pandora.js b/pandora_console/include/graphs/flot/jquery.flot.exportdata.pandora.js index bb7c5d56dd..e8bb747901 100644 --- a/pandora_console/include/graphs/flot/jquery.flot.exportdata.pandora.js +++ b/pandora_console/include/graphs/flot/jquery.flot.exportdata.pandora.js @@ -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);