diff --git a/o2web/source/x_component_process_Xform/DatagridMobile.js b/o2web/source/x_component_process_Xform/DatagridMobile.js index 0e50a814bb1fd389ff406b46469e1d21ed058418..7247e65481b8cf314ff168c0ead699f1fa9504c9 100644 --- a/o2web/source/x_component_process_Xform/DatagridMobile.js +++ b/o2web/source/x_component_process_Xform/DatagridMobile.js @@ -931,7 +931,7 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({ datath.setStyles(this.json.titleStyles); tr.insertCell(1).setStyles(this.json.amountStyles).set("text", totalResaults[i] || ""); }else{ - tr.getElement("td").set("text", totalResaults[i] || ""); + tr.getElement("td").set("text", isNaN( totalResaults[i] ) ? "" : totalResaults[i]); } this.totalResaults[m.module.json.id] = totalResaults[i]; }.bind(this)); diff --git a/o2web/source/x_component_process_Xform/DatagridPC.js b/o2web/source/x_component_process_Xform/DatagridPC.js index 1058e7fa517141a484c25ba63898748864d35a45..0e518943687615d7dda4e25f4952e390fd9cdaf8 100644 --- a/o2web/source/x_component_process_Xform/DatagridPC.js +++ b/o2web/source/x_component_process_Xform/DatagridPC.js @@ -823,7 +823,7 @@ MWF.xApplication.process.Xform.DatagridPC = new Class({ this.totalModules.each(function(m, i){ this.totalResaults[m.module.json.id] = totalResaults[i]; var td = totalTds[m.index]; - td.set("text", totalResaults[i] || ""); + td.set("text", isNaN( totalResaults[i] ) ? "" : totalResaults[i] ); }.bind(this)); } return data;