Commit 81ed237f3dd3a8e0b43ba7feb01eb7b750f9f11f

Authored by Luigi Serra
1 parent 0ff098cc

updates

controllets/dataset-table-controllet/dataset-table-controllet.html
@@ -434,7 +434,10 @@ @@ -434,7 +434,10 @@
434 434
435 //2nd loop will extract each column and convert it in string comma-seprated 435 //2nd loop will extract each column and convert it in string comma-seprated
436 for (var index in arrData[i]) { 436 for (var index in arrData[i]) {
437 - row += '"' + arrData[i][index].replace('"', '""') + '",'; 437 + if(typeof arrData[i][index] == 'string')
  438 + row += '"' + arrData[i][index].replace('"', '""') + '",';
  439 + else
  440 + row += arrData[i][index] + ',';
438 } 441 }
439 442
440 row.slice(0, row.length - 1); 443 row.slice(0, row.length - 1);